Commit 1952f15c authored by Bruce Momjian's avatar Bruce Momjian

Fix memory leak in psql.

parent eb9c8e0a
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.74 1997/06/20 02:20:26 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.75 1997/06/29 05:06:43 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1558,6 +1558,7 @@ MainLoop(PsqlSettings * settings, FILE * source) ...@@ -1558,6 +1558,7 @@ MainLoop(PsqlSettings * settings, FILE * source)
free(line); free(line);
break; break;
} }
free(line);
} else if (strlen(query) + strlen(query_start) > MAX_QUERY_BUFFER) { } else if (strlen(query) + strlen(query_start) > MAX_QUERY_BUFFER) {
fprintf(stderr, "query buffer max length of %d exceeded\n", fprintf(stderr, "query buffer max length of %d exceeded\n",
MAX_QUERY_BUFFER); MAX_QUERY_BUFFER);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment