From: Eric Leblond Date: Tue, 27 Nov 2012 09:09:59 +0000 (+0100) Subject: host: suppress double memory clear X-Git-Tag: suricata-1.4rc1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F230%2Fhead;p=thirdparty%2Fsuricata.git host: suppress double memory clear HostFree() is calling HostClearMemory() so calling HostClearMemory() before HostFree() is useless. --- diff --git a/src/host.c b/src/host.c index a86fd42508..a159df82bf 100644 --- a/src/host.c +++ b/src/host.c @@ -266,7 +266,6 @@ void HostShutdown(void) Host *h = host_hash[u].head; while (h) { Host *n = h->hnext; - HostClearMemory(h); HostFree(h); h = n; }