From: Chang, Harry Date: Wed, 2 Dec 2020 05:13:23 +0000 (+0000) Subject: Logical Combination: use hs_misc_free instead of free. X-Git-Tag: vectorscan-v5.4.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=001b7824d26160b539409d73d10a091bbb24d29a;p=thirdparty%2Fvectorscan.git Logical Combination: use hs_misc_free instead of free. fixes github issue #284 --- diff --git a/src/parser/logical_combination.cpp b/src/parser/logical_combination.cpp index 49e060c9..de017a11 100644 --- a/src/parser/logical_combination.cpp +++ b/src/parser/logical_combination.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019, Intel Corporation + * Copyright (c) 2018-2020, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -33,6 +33,7 @@ #include "parser/parse_error.h" #include "util/container.h" #include "hs_compile.h" +#include "allocator.h" #include @@ -151,7 +152,7 @@ void ParsedLogical::validateSubIDs(const unsigned *ids, if (info->unordered_matches) { throw CompileError("Have unordered match in sub-expressions."); } - free(info); + hs_misc_free(info); } } }