Fix missing PQclear() in libpqrcv_endstreaming().
This omission leaked one PGresult per WAL streaming cycle, which possibly would never be enough to notice in the real world, but it's still a leak. Per Coverity. Back-patch to 9.3 where the error was introduced.
This commit is contained in:
parent
e44735c488
commit
0ac1fedab9
@ -252,6 +252,7 @@ libpqrcv_endstreaming(TimeLineID *next_tli)
|
|||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errmsg("error reading result of streaming command: %s",
|
(errmsg("error reading result of streaming command: %s",
|
||||||
PQerrorMessage(streamConn))));
|
PQerrorMessage(streamConn))));
|
||||||
|
PQclear(res);
|
||||||
|
|
||||||
/* Verify that there are no more results */
|
/* Verify that there are no more results */
|
||||||
res = PQgetResult(streamConn);
|
res = PQgetResult(streamConn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user