mirror of
https://github.com/postgres/postgres.git
synced 2026-04-24 15:47:01 -04:00
Fix memory leak introduced in the prior commit, detected by Tom Lane.
This commit is contained in:
parent
78bfc22ee2
commit
68628fc38e
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue