diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-12-30 05:05:13 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-12-30 05:05:13 +0000 |
commit | 9c95f8c9b298c1badb4376eabad53b35a8ac4f2b (patch) | |
tree | 8bb89eb69751313f9e62458fba1a7dd233749267 /src/backend/commands/trigger.c | |
parent | 649ffe161653f2e3f181f616de62ccc467d8c879 (diff) | |
download | postgresql-9c95f8c9b298c1badb4376eabad53b35a8ac4f2b.tar.gz postgresql-9c95f8c9b298c1badb4376eabad53b35a8ac4f2b.zip |
Repair bugs discussed in pghackers thread of 15 May 1999: creation of a
relcache entry no longer leaks a small amount of memory. index_endscan
now releases all the memory acquired by index_beginscan, so callers of it
should NOT pfree the scan descriptor anymore.
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r-- | src/backend/commands/trigger.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 2615ea43cce..40159db834f 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -513,7 +513,6 @@ RelationBuildTriggers(Relation relation) NAMEDATALEN, RelationGetRelationName(relation)); index_endscan(sd); - pfree(sd); index_close(irel); heap_close(tgrel, AccessShareLock); @@ -1562,7 +1561,6 @@ DeferredTriggerSetState(ConstraintsSetStmt *stmt) elog(ERROR, "Constraint '%s' does not exist", (char *)lfirst(l)); index_endscan(sd); - } index_close(irel); heap_close(tgrel, AccessShareLock); |