Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit734bbf2

Browse files
committed
Fix missing PQclear() in libpqrcv_endstreaming().
This omission leaked one PGresult per WAL streaming cycle, which possiblywould 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.
1 parentbcf2dec commit734bbf2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ libpqrcv_endstreaming(TimeLineID *next_tli)
246246
ereport(ERROR,
247247
(errmsg("error reading result of streaming command: %s",
248248
PQerrorMessage(streamConn))));
249+
PQclear(res);
249250

250251
/* Verify that there are no more results */
251252
res=PQgetResult(streamConn);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp