mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
memory leak fix
This commit is contained in:
parent
16f28283de
commit
940a220d6a
1 changed files with 3 additions and 0 deletions
3
peer.c
3
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue