OSDN Git Service

Fix memory leak in relcache handling of rules: allocate rule parsetrees
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Jan 2001 21:53:18 +0000 (21:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 6 Jan 2001 21:53:18 +0000 (21:53 +0000)
commite69b8d46559bee74b63917414320a7dcbdfd3fe5
tree871a0ce5a230cf98bc424e4e963df4387dd1332e
parentca882439526154cdfa8745019f8adfeb2ad48489
Fix memory leak in relcache handling of rules: allocate rule parsetrees
in per-entry sub-memory-context, where they were supposed to go, rather
than in CacheMemoryContext where the code was putting them.  Must've
suffered a severe brain fade when I wrote this :-(
src/backend/utils/cache/relcache.c