mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Logical Combination: use hs_misc_free instead of free.
fixes github issue #284
This commit is contained in:
parent
845ea5c9e3
commit
20e69f6ad8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user