Content-Length: 263714 | pFad | http://github.com/postgrespro/postgres_cluster/commit/f3e7237c654a74f52b9a82bb8201b5e7aa016097

C9 fix successful connection leak in MtmGetRefereeWinner() · postgrespro/postgres_cluster@f3e7237 · GitHub
Skip to content

Commit f3e7237

Browse files
committed
fix successful connection leak in MtmGetRefereeWinner()
1 parent 2df4524 commit f3e7237

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

state.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,10 @@ MtmGetRefereeWinner(void)
533533
return -1;
534534
}
535535

536-
MTM_LOG1("Got referee response, winner node_id=%d.", winner_node_id);
537536
/* Ok, we finally got it! */
537+
PQclear(res);
538+
PQfinish(conn);
539+
MTM_LOG1("Got referee response, winner node_id=%d.", winner_node_id);
538540
return winner_node_id;
539541
}
540542

File renamed without changes.

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_cluster/commit/f3e7237c654a74f52b9a82bb8201b5e7aa016097

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy