Re: pgsql: Plug more memory leaks when reloading config file. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Plug more memory leaks when reloading config file.
Date
Msg-id 28770.1390321809@sss.pgh.pa.us
Whole thread Raw
In response to pgsql: Plug more memory leaks when reloading config file.  (Robert Haas <rhaas@postgresql.org>)
Responses Re: pgsql: Plug more memory leaks when reloading config file.
List pgsql-committers
Robert Haas <rhaas@postgresql.org> writes:
> Plug more memory leaks when reloading config file.

Hm, not too sure about this hunk:

        ereport(LOG,
                (errmsg("skipping missing configuration file \"%s\"",
                        abs_path)));
-       return OK;
+       OK = true;
+       goto cleanup;
    }

That's changing the semantics, no?  That is, what if OK was previously
false?  Seems like this coding might be masking an intended failure
report.  I'd have expected just "goto cleanup" without changing OK.

            regards, tom lane


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Avoid a possible relcache leak in get_object_address_attribute.
Next
From: Robert Haas
Date:
Subject: Re: pgsql: Plug more memory leaks when reloading config file.