memory leak fix

This commit is contained in:
eihrul 2005-07-19 05:23:43 +00:00
parent 16f28283de
commit 940a220d6a

3
peer.c
View file

@ -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);
}
}