1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

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.
This commit is contained in:
Tom Lane
1999-12-30 05:05:13 +00:00
parent 649ffe1616
commit 9c95f8c9b2
8 changed files with 61 additions and 70 deletions

View File

@ -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);