Fix memory leak in syslogger: logfile_rotate() would leak a copy of the
output filename if CSV logging was enabled and only one of the two possible
output files got rotated during a particular call (which would, in fact,
typically be the case during a size-based rotation). This would amount to
about MAXPGPATH (1KB) per rotation, and it's been there since the CSV
code was put in, so it's surprising that nobody noticed it before.
Per bug #5196 from Thomas Poindessous.
syslogger.c (r184.108.40.206 -> r220.127.116.11)
pgsql-committers by date
|Next:||From: Peter Eisentraut||Date: 2009-11-19 22:05:48|
|Subject: pgsql: Typo: dump -> restore fixed in 8.4 and 8.5 Author: Guillaume |
|Previous:||From: Tom Lane||Date: 2009-11-19 02:45:40|
|Subject: pgsql: Fix memory leak in syslogger: logfile_rotate() would leak a copy |