projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78bfc22
)
Fix memory leak introduced in the prior commit, detected by Tom Lane.
author
Alvaro Herrera
Fri, 30 Jun 2006 16:55:35 +0000
(16:55 +0000)
committer
Alvaro Herrera
Fri, 30 Jun 2006 16:55:35 +0000
(16:55 +0000)
src/bin/psql/common.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/common.c
b/src/bin/psql/common.c
index fe7d508a438541ad2ed1b4d94c49eaeafa1bf1d6..9b905295782fb466736e0e9167396a5e3ef2d10b 100644
(file)
--- 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.12
0 2006/06/30 15:06:0
5 alvherre Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.12
1 2006/06/30 16:55:3
5 alvherre Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@@
-910,6
+910,8
@@
SendQuery(const char *query)
ResetCancelConn();
return false;
}
+
+ PQclear(svptres);
}
PQclear(results);