pgsql: Plug memory leak when reloading config file.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Plug memory leak when reloading config file.
Date: 2013-10-24 12:32:57
Message-ID: E1VZK5x-0003Qi-1X@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Plug memory leak when reloading config file.

The absolute path to config file was not pfreed. There are probably more
small leaks here and there in the config file reload code and assign hooks,
and in practice no-one reloads the config files frequently enough for it to
be a problem, but this one is trivial enough that might as well fix it.

Backpatch to 9.3 where the leak was introduced.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/138184adc5f7c60c184972e4d23f8cdb32aed77d

Modified Files
--------------
src/backend/utils/misc/guc-file.l | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2013-10-24 12:42:29 pgsql: Improve documentation of random() function.
Previous Message Heikki Linnakangas 2013-10-24 11:09:18 pgsql: Fix memory leak when an empty ident file is reloaded.