]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
packet pool: fix wrong free call
authorVictor Julien <victor@inliniac.net>
Mon, 5 Jan 2015 16:42:28 +0000 (17:42 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 5 Jan 2015 16:42:28 +0000 (17:42 +0100)
src/tmqh-packetpool.c

index b19845ff081e37572118ff668eededf6a7c13a01..ef63ec4e83cd1abdf3d445f975a224a865f549fe 100644 (file)
@@ -223,7 +223,7 @@ void PacketPoolReturnPacket(Packet *p)
 
     PktPool *pool = p->pool;
     if (pool == NULL) {
-        free(p);
+        PacketFree(p);
         return;
     }