Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1
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)