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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy