Logical Combination: use hs_misc_free instead of free.

fixes github issue #284
This commit is contained in:
Chang, Harry 2020-12-02 05:13:23 +00:00 committed by Konstantinos Margaritis
parent bb9ed60489
commit 001b7824d2

View File

@ -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 * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
@ -33,6 +33,7 @@
#include "parser/parse_error.h" #include "parser/parse_error.h"
#include "util/container.h" #include "util/container.h"
#include "hs_compile.h" #include "hs_compile.h"
#include "allocator.h"
#include <vector> #include <vector>
@ -151,7 +152,7 @@ void ParsedLogical::validateSubIDs(const unsigned *ids,
if (info->unordered_matches) { if (info->unordered_matches) {
throw CompileError("Have unordered match in sub-expressions."); throw CompileError("Have unordered match in sub-expressions.");
} }
free(info); hs_misc_free(info);
} }
} }
} }