From 07ffb7db5326907951822063e587d2254db3e81f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 23 Oct 2018 14:59:15 +0200 Subject: [PATCH] host/os/info: fix lookup memleak --- src/util-host-os-info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util-host-os-info.c b/src/util-host-os-info.c index 93e73a82d0..e96c5c3796 100644 --- a/src/util-host-os-info.c +++ b/src/util-host-os-info.c @@ -261,6 +261,7 @@ int SCHInfoGetHostOSFlavour(const char *ip_addr_str) } (void)SCRadixFindKeyIPV6BestMatch((uint8_t *)ipv6_addr, sc_hinfo_tree, &user_data); + SCFree(ipv6_addr); if (user_data == NULL) return -1; else @@ -272,6 +273,7 @@ int SCHInfoGetHostOSFlavour(const char *ip_addr_str) } (void)SCRadixFindKeyIPV4BestMatch((uint8_t *)ipv4_addr, sc_hinfo_tree, &user_data); + SCFree(ipv4_addr); if (user_data == NULL) return -1; else -- 2.47.2