diff options
author | Bruce Momjian <bruce@momjian.us> | 2003-03-19 22:49:43 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2003-03-19 22:49:43 +0000 |
commit | ddd50a0babd9a8ae478eee607108b7ed5675571d (patch) | |
tree | 8717a53c53040d2e0baa3d65c16b59c1f111d7be /src | |
parent | 1ef7ba20e774bd8f94a9642db22585c5b9aa3aa7 (diff) | |
download | postgresql-ddd50a0babd9a8ae478eee607108b7ed5675571d.tar.gz postgresql-ddd50a0babd9a8ae478eee607108b7ed5675571d.zip |
This patch fixes a very small memory leak in psql, spotted with
valgrind.
Neil Conway
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 66a8553e212..9f393024b6a 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.92 2003/03/18 22:15:43 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.93 2003/03/19 22:49:43 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -882,6 +882,8 @@ exec_command(const char *cmd, { if (status != CMD_UNKNOWN) psql_error("\\%s: extra argument '%s' ignored\n", cmd, val); + if (val) + free(val); } if (options_string && continue_parse) |