Avoid leaking hyperscan struct

This commit is contained in:
Derrick Lyndon Pallas
2019-04-22 17:02:11 +00:00
parent 8365afee8d
commit 33d17dbf1f
+1
View File
@@ -998,6 +998,7 @@ static void free_hyperscan_memory(struct hs *h) {
if(h) {
hs_free_scratch(h->scratch);
hs_free_database(h->database);
free(h);
}
}