From 940a220d6a87c3ed072ccebc30e9841e0ed63ffc Mon Sep 17 00:00:00 2001 From: eihrul Date: Tue, 19 Jul 2005 05:23:43 +0000 Subject: memory leak fix --- peer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'peer.c') diff --git a/peer.c b/peer.c index 25bdd97..2689e15 100644 --- a/peer.c +++ b/peer.c @@ -292,6 +292,9 @@ enet_peer_reset_incoming_commands (ENetList * queue) enet_packet_destroy (incomingCommand -> packet); } + if (incomingCommand -> fragments != NULL) + enet_free (incomingCommand -> fragments); + enet_free (incomingCommand); } } -- cgit v1.2.3