OSDN Git Service

1. Fix md memory leak:
authorVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 22 May 1997 17:08:35 +0000 (17:08 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 22 May 1997 17:08:35 +0000 (17:08 +0000)
commit19269069dccf805653aef5a46bbab99a8b39b4aa
tree17fc857b8adfb910032fbd9a7f0287b183a5497a
parentff8ce5230dc60e5222a1b2670d7bf7ab43f918f3
1. Fix md memory leak:
   mdunlink() and mdclose() (too !!!) now free MdfdVec for relation
   and add it to free list, so it may be re-used for another relation
   later.
2. Fix VFD-manager memory leak (found by Massimo ... and me):
   mdunlink() has to call FileUnlink() to free allocation for fileName
   and add the Vfd slot to the free list.
src/backend/storage/smgr/md.c
src/backend/storage/smgr/smgr.c