Merge pull request #696 from pallas/avoid-hyperscan-leak
Avoid leaking hyperscan struct
This commit is contained in:
@@ -999,6 +999,7 @@ static void free_hyperscan_memory(struct hs *h) {
|
|||||||
if(h) {
|
if(h) {
|
||||||
hs_free_scratch(h->scratch);
|
hs_free_scratch(h->scratch);
|
||||||
hs_free_database(h->database);
|
hs_free_database(h->database);
|
||||||
|
free(h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user