Avoid leaking hyperscan struct
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user