Skip to content

Commit e690930

Browse files
committed
Plug memory leak
Commit 054325c 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.
1 parent 559ec79 commit e690930

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interfaces/libpq/fe-exec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ PQsendQueryInternal(PGconn *conn, const char *query, bool newQuery)
15461546

15471547
sendFailed:
15481548
pqRecycleCmdQueueEntry(conn, entry);
1549+
pqRecycleCmdQueueEntry(conn, entry2);
15491550
/* error message should be set up already */
15501551
return 0;
15511552
}

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