Skip to content

Commit 68628fc

Browse files
committed
Fix memory leak introduced in the prior commit, detected by Tom Lane.
1 parent 78bfc22 commit 68628fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/psql/common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.120 2006/06/30 15:06:05 alvherre Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.121 2006/06/30 16:55:35 alvherre Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "common.h"
@@ -910,6 +910,8 @@ SendQuery(const char *query)
910910
ResetCancelConn();
911911
return false;
912912
}
913+
914+
PQclear(svptres);
913915
}
914916

915917
PQclear(results);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy