Remove PERFECT_MEM

Unallocate opaque.
This commit is contained in:
Bruce Momjian 1996-11-15 18:37:10 +00:00
parent f8e02c192a
commit b847d29785
3 changed files with 7 additions and 12 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.10 1996/11/13 20:47:18 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.11 1996/11/15 18:36:59 momjian Exp $
*
* NOTES
* This file contains only the public interface routines.
@ -277,7 +277,6 @@ btbuild(Relation heap,
}
}
/* be tidy */
pfree(nulls);
pfree(attdata);
@ -467,14 +466,11 @@ btendscan(IndexScanDesc scan)
so->btso_mrkbuf = InvalidBuffer;
ItemPointerSetInvalid(iptr);
}
/* don't need scan registered anymore */
_bt_dropscan(scan);
/* be tidy */
pfree (scan->opaque);
if ( so->keyData != (ScanKey) NULL )
pfree (so->keyData);
pfree (scan->opaque);
_bt_dropscan(scan);
}
/*

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.5 1996/11/05 10:35:33 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.6 1996/11/15 18:37:00 momjian Exp $
*
*
* NOTES
@ -78,9 +78,7 @@ _bt_dropscan(IndexScanDesc scan)
else
last->btsl_next = chk->btsl_next;
#ifdef PERFECT_MEM
pfree (chk);
#endif /* PERFECT_MEM */
}
void

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.8 1996/11/05 10:54:19 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.9 1996/11/15 18:37:10 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -223,6 +223,7 @@ rtendscan(IndexScanDesc s)
if (p != (RTreeScanOpaque) NULL) {
freestack(p->s_stack);
freestack(p->s_markstk);
pfree (s->opaque);
}
rtdropscan(s);