diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2006-06-30 16:55:35 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2006-06-30 16:55:35 +0000 |
commit | 68628fc38ea7a3c72f6a813b0193d836731d9c10 (patch) | |
tree | 3f9ae0c2f82115b8e6c91b7e7130b7070cbcbbdd /src | |
parent | 78bfc22ee2ff3a4f1b363d7bf6444c6ec48d403f (diff) | |
download | postgresql-68628fc38ea7a3c72f6a813b0193d836731d9c10.tar.gz postgresql-68628fc38ea7a3c72f6a813b0193d836731d9c10.zip |
Fix memory leak introduced in the prior commit, detected by Tom Lane.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index fe7d508a438..9b905295782 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.120 2006/06/30 15:06:05 alvherre Exp $ + * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.121 2006/06/30 16:55:35 alvherre Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -910,6 +910,8 @@ SendQuery(const char *query) ResetCancelConn(); return false; } + + PQclear(svptres); } PQclear(results); |