Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8ae24a7

Browse files
committed
update fixes.
1 parent 4a70002 commit 8ae24a7

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/backend/commands/cluster.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
*
1616
* IDENTIFICATION
17-
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.28 1998/08/19 02:01:41 momjian Exp $
17+
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.29 1998/08/20 22:24:10 momjian Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -349,8 +349,7 @@ rebuildheap(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex)
349349

350350
ScanDesc = index_beginscan(LocalOldIndex, false, 0, (ScanKey) NULL);
351351

352-
while ((ScanResult =
353-
index_getnext(ScanDesc, ForwardScanDirection)) != NULL)
352+
while ((ScanResult = index_getnext(ScanDesc, ForwardScanDirection)) != NULL)
354353
{
355354

356355
HeapTid = &ScanResult->heap_iptr;

src/backend/storage/large_object/inv_api.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.34 1998/08/19 02:02:38 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.35 1998/08/20 22:24:11 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -644,11 +644,8 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer)
644644
&skey);
645645
}
646646

647-
res = NULL;
648647
do
649648
{
650-
if (res)
651-
pfree(res);
652649
res = index_getnext(obj_desc->iscan, ForwardScanDirection);
653650

654651
if (res == (RetrieveIndexResult) NULL)
@@ -668,7 +665,8 @@ inv_fetchtup(LargeObjectDesc *obj_desc, Buffer *buffer)
668665
*/
669666

670667
tuple = heap_fetch(obj_desc->heap_r, SnapshotNow,
671-
&(res->heap_iptr), buffer);
668+
&res->heap_iptr, buffer);
669+
pfree(res);
672670
} while (tuple == (HeapTuple) NULL);
673671

674672
/* remember this tid -- we may need it for later reads/writes */

0 commit comments

Comments
 (0)