]> granicus.if.org Git - postgresql/commitdiff
Remember to close the file on failure (pretty much redundant, really,
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Nov 2004 00:08:23 +0000 (00:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Nov 2004 00:08:23 +0000 (00:08 +0000)
since this path will lead to postmaster exit anyway...)

src/backend/utils/misc/guc-file.l

index be36166743a3a87f567e6f85889de244c3803e71..b6971cedab251545817790d47b8f2b590dbcd5ac 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 2000-2004, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.27 2004/11/11 23:45:13 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.28 2004/11/12 00:08:23 tgl Exp $
  */
 
 %{
@@ -214,6 +214,7 @@ ProcessConfigFile(GucContext context)
                                        {
                                                pfree(opt_name);
                                                pfree(opt_value);
+                                               FreeFile(fp);
                                                goto cleanup_exit;
                                        }
                                        pfree(opt_name);