mirror of
https://github.com/postgres/postgres.git
synced 2026-02-24 10:25:42 -05:00
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
bcf2decdce
commit
734bbf2e97
1 changed files with 1 additions and 0 deletions
|
|
@ -246,6 +246,7 @@ libpqrcv_endstreaming(TimeLineID *next_tli)
|
|||
ereport(ERROR,
|
||||
(errmsg("error reading result of streaming command: %s",
|
||||
PQerrorMessage(streamConn))));
|
||||
PQclear(res);
|
||||
|
||||
/* Verify that there are no more results */
|
||||
res = PQgetResult(streamConn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue