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
bb9ed60489
commit
001b7824d2
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user