Remove somebody's ill-considered free() call, per report from Chander Ganesan.
authorTom Lane
Thu, 12 Oct 2006 05:14:49 +0000 (05:14 +0000)
committerTom Lane
Thu, 12 Oct 2006 05:14:49 +0000 (05:14 +0000)
No, I do not care whether Coverity considers this a memory leak.
It's entirely not worth the code space to do it correctly.

src/bin/pg_ctl/pg_ctl.c

index 728538b971e30a7a54cbfa48784a2d9c959e0aa9..57207ebd99571d05e0193471a6a135ea567ffd76 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.73 2006/10/04 00:30:04 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.74 2006/10/12 05:14:49 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -858,7 +858,6 @@ do_status(void)
                if (optlines != NULL)
                    for (; *optlines != NULL; optlines++)
                        fputs(*optlines, stdout);
-               free(optlines);
                return;
            }
        }