From 001b7824d26160b539409d73d10a091bbb24d29a Mon Sep 17 00:00:00 2001 From: "Chang, Harry" Date: Wed, 2 Dec 2020 05:13:23 +0000 Subject: [PATCH] Logical Combination: use hs_misc_free instead of free. fixes github issue #284 --- src/parser/logical_combination.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } }