mirror of
https://github.com/postgres/postgres.git
synced 2025-05-15 00:02:24 -04:00
Fix memory leak introduced in the prior commit, detected by Tom Lane.
This commit is contained in:
parent
55a39e0b0b
commit
8728d4aba9
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
* 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 "postgres_fe.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
@ -1102,6 +1102,8 @@ SendQuery(const char *query)
|
|||||||
ResetCancelConn();
|
ResetCancelConn();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PQclear(svptres);
|
||||||
}
|
}
|
||||||
|
|
||||||
PQclear(results);
|
PQclear(results);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user