Commit 237e0a63 authored by Bruce Momjian's avatar Bruce Momjian

Fix for double free from Tatsuo Ishii

parent 3abf496b
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.40 1998/09/04 18:21:11 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.41 1998/10/06 03:55:43 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -669,8 +669,7 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer) ...@@ -669,8 +669,7 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer)
} while (tuple == (HeapTuple) NULL); } while (tuple == (HeapTuple) NULL);
/* remember this tid -- we may need it for later reads/writes */ /* remember this tid -- we may need it for later reads/writes */
ItemPointerCopy(&(res->heap_iptr), &(obj_desc->htid)); ItemPointerCopy(&tuple->t_ctid, &obj_desc->htid);
pfree(res);
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment