Content-Length: 252634 | pFad | http://github.com/postgrespro/postgres/commit/74a68e37d059295e97cc55683c9342912a0ec81f

64 Free leaked result set in pg_rewind · postgrespro/postgres@74a68e3 · GitHub
Skip to content

Commit 74a68e3

Browse files
committed
Free leaked result set in pg_rewind
It was not significant in practice, it was just one instance of a small result set, but let's pacify Coverity. Michael Paquier
1 parent 9029f4b commit 74a68e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_rewind/libpq_fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ receiveFileChunks(const char *sql)
231231
break;
232232

233233
case PGRES_TUPLES_OK:
234+
PQclear(res);
234235
continue; /* final zero-row result */
235236

236237
default:

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/74a68e37d059295e97cc55683c9342912a0ec81f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy