From 50556696837011bf6027ad797315f7c5ebc52c77 Mon Sep 17 00:00:00 2001 From: eihrul Date: Thu, 9 Dec 2004 18:27:53 +0000 Subject: [PATCH] bug fix --- packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;