summaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2005-07-19 05:23:43 +0000
committereihrul <eihrul>2005-07-19 05:23:43 +0000
commit940a220d6a87c3ed072ccebc30e9841e0ed63ffc (patch)
tree46f09249777a1a39347145f40237b8c5bf63cbe4 /peer.c
parent16f28283de3c0a6b4442f402559294e5a8f14693 (diff)
downloadenet-940a220d6a87c3ed072ccebc30e9841e0ed63ffc.tar.gz
enet-940a220d6a87c3ed072ccebc30e9841e0ed63ffc.zip
memory leak fix
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c3
1 files changed, 3 insertions, 0 deletions
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);
}
}