From afded8add308cdc77da9fce994c603b34b90cc0e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 13 Dec 1998 05:07:50 +0000 Subject: [PATCH] Fix for lo_import crash. --- src/backend/storage/large_object/inv_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c index 65ce0aba63..740a413263 100644 --- a/src/backend/storage/large_object/inv_api.c +++ b/src/backend/storage/large_object/inv_api.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.42 1998/11/27 19:52:19 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.43 1998/12/13 05:07:50 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -549,8 +549,8 @@ inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes) tuplen = inv_wrnew(obj_desc, buf, nbytes - nwritten); else tuplen = inv_wrold(obj_desc, buf, nbytes - nwritten, &tuple, buffer); + ReleaseBuffer(buffer); } - ReleaseBuffer(buffer); /* move pointers past the amount we just wrote */ buf += tuplen; -- 2.40.0