File tree 3 files changed +7
-12
lines changed
3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.10 1996/11/13 20:47:18 scrappy Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.11 1996/11/15 18:36:59 momjian Exp $
12
12
*
13
13
* NOTES
14
14
* This file contains only the public interface routines.
@@ -277,7 +277,6 @@ btbuild(Relation heap,
277
277
}
278
278
}
279
279
280
- /* be tidy */
281
280
pfree (nulls );
282
281
pfree (attdata );
283
282
@@ -467,14 +466,11 @@ btendscan(IndexScanDesc scan)
467
466
so -> btso_mrkbuf = InvalidBuffer ;
468
467
ItemPointerSetInvalid (iptr );
469
468
}
470
-
471
- /* don't need scan registered anymore */
472
- _bt_dropscan (scan );
473
-
474
- /* be tidy */
469
+
470
+ pfree (scan -> opaque );
475
471
if ( so -> keyData != (ScanKey ) NULL )
476
472
pfree (so -> keyData );
477
- pfree (scan -> opaque );
473
+ _bt_dropscan (scan );
478
474
}
479
475
480
476
/*
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.5 1996/11/05 10:35:33 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.6 1996/11/15 18:37:00 momjian Exp $
11
11
*
12
12
*
13
13
* NOTES
@@ -78,9 +78,7 @@ _bt_dropscan(IndexScanDesc scan)
78
78
else
79
79
last -> btsl_next = chk -> btsl_next ;
80
80
81
- #ifdef PERFECT_MEM
82
81
pfree (chk );
83
- #endif /* PERFECT_MEM */
84
82
}
85
83
86
84
void
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.8 1996/11/05 10:54:19 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.9 1996/11/15 18:37:10 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -223,6 +223,7 @@ rtendscan(IndexScanDesc s)
223
223
if (p != (RTreeScanOpaque ) NULL ) {
224
224
freestack (p -> s_stack );
225
225
freestack (p -> s_markstk );
226
+ pfree (s -> opaque );
226
227
}
227
228
228
229
rtdropscan (s );
You can’t perform that action at this time.
0 commit comments