mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Plug memory leak
Commit 054325c5ee created a memory leak in PQsendQueryInternal in case
an error occurs while sending the message. Repair.
Backpatch to 14, like that commit. Reported by Coverity.
This commit is contained in:
parent
af72b08894
commit
9e038d6907
1 changed files with 1 additions and 0 deletions
|
|
@ -1448,6 +1448,7 @@ PQsendQueryInternal(PGconn *conn, const char *query, bool newQuery)
|
|||
|
||||
sendFailed:
|
||||
pqRecycleCmdQueueEntry(conn, entry);
|
||||
pqRecycleCmdQueueEntry(conn, entry2);
|
||||
/* error message should be set up already */
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue