aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2010-11-08 18:35:42 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2010-11-08 18:35:42 -0300
commit854ae8c3a6bab2053f8bdbc453787be878ce8c81 (patch)
treeb2514853fdfe200912a73366aa58c70aca55bf79 /src/backend/storage/file/fd.c
parent947d0c862c895618a874344322e7b07c9df05cb2 (diff)
downloadpostgresql-854ae8c3a6bab2053f8bdbc453787be878ce8c81.tar.gz
postgresql-854ae8c3a6bab2053f8bdbc453787be878ce8c81.zip
Fix permanent memory leak in autovacuum launcher
get_database_list was uselessly allocating its output data, along some created along the way, in a permanent memory context. This didn't matter when autovacuum was a single, short-lived process, but now that the launcher is permanent, it shows up as a permanent leak. To fix, make get_database list allocate its output data in the caller's context, which is in charge of freeing it when appropriate; and the memory leaked by heap_beginscan et al is allocated in a throwaway transaction context.
Diffstat (limited to 'src/backend/storage/file/fd.c')
0 files changed, 0 insertions, 0 deletions