]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix memory leak introduced in the prior commit, detected by Tom Lane.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 30 Jun 2006 16:55:41 +0000 (16:55 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 30 Jun 2006 16:55:41 +0000 (16:55 +0000)
src/bin/psql/common.c

index 0699bc00704484382a197b300889c5e3c8aa00fb..1324e557b03804987690bbc4016cc90b3235cabd 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2005, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.110.2.2 2006/06/30 15:06:16 alvherre Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.110.2.3 2006/06/30 16:55:41 alvherre Exp $
  */
 #include "postgres_fe.h"
 #include "common.h"
@@ -1102,6 +1102,8 @@ SendQuery(const char *query)
                        ResetCancelConn();
                        return false;
                }
+
+               PQclear(svptres);
        }
 
        PQclear(results);