Thread: pgsql-server: Code review for recent changes in guc-file.l.

pgsql-server: Code review for recent changes in guc-file.l.

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Code review for recent changes in guc-file.l.  Avoid multiple frees,
use of already-freed strings, other silliness.  Also fix reporting of
config file syntax errors so that it actually works reasonably well
(eg, points at the correct line).  Use palloc instead of malloc for
temporary storage to reduce code clutter.

Modified Files:
--------------
    pgsql-server/src/backend/utils/misc:
        guc-file.l (r1.24 -> r1.25)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/misc/guc-file.l.diff?r1=1.24&r2=1.25)
        guc.c (r1.237 -> r1.238)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/misc/guc.c.diff?r1=1.237&r2=1.238)