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 Hong, Yang A
parent 845ea5c9e3
commit 20e69f6ad8

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
* 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 <vector>
@ -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);
}
}
}