diff --git a/packet.c b/packet.c index 4bc6e77..5226550 100644 --- a/packet.c +++ b/packet.c @@ -63,7 +63,7 @@ enet_packet_resize (ENetPacket * packet, size_t dataLength) newData = (enet_uint8 *) enet_malloc (dataLength); memcpy (newData, packet -> data, packet -> dataLength); - free (packet -> data); + enet_free (packet -> data); packet -> data = newData; packet -> dataLength = dataLength;