]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
host: suppress double memory clear 230/head
authorEric Leblond <eric@regit.org>
Tue, 27 Nov 2012 09:09:59 +0000 (10:09 +0100)
committerEric Leblond <eric@regit.org>
Tue, 27 Nov 2012 12:45:57 +0000 (13:45 +0100)
HostFree() is calling HostClearMemory() so calling HostClearMemory()
before HostFree() is useless.

src/host.c

index a86fd4250862f4ba0d676b418e5bf772d136dbd3..a159df82bf6834a191f3b50b59da16058391a3b2 100644 (file)
@@ -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;
             }