diff options
author | eihrul <eihrul> | 2005-07-19 05:23:43 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2005-07-19 05:23:43 +0000 |
commit | 940a220d6a87c3ed072ccebc30e9841e0ed63ffc (patch) | |
tree | 46f09249777a1a39347145f40237b8c5bf63cbe4 | |
parent | 16f28283de3c0a6b4442f402559294e5a8f14693 (diff) | |
download | enet-940a220d6a87c3ed072ccebc30e9841e0ed63ffc.tar.gz enet-940a220d6a87c3ed072ccebc30e9841e0ed63ffc.zip |
memory leak fix
-rw-r--r-- | peer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } } |