Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)