]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Logical Combination: use hs_misc_free instead of free.
authorChang, Harry <harry.chang@intel.com>
Wed, 2 Dec 2020 05:13:23 +0000 (05:13 +0000)
committerKonstantinos Margaritis <markos@users.noreply.github.com>
Mon, 25 Jan 2021 12:13:13 +0000 (14:13 +0200)
fixes github issue #284

src/parser/logical_combination.cpp

index 49e060c9813f60166585ea795c6f5a9af52b3cc8..de017a1108747bcddca30a1e9685db010f50b496 100644 (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);
         }
     }
 }