Merge pull request #696 from pallas/avoid-hyperscan-leak

Avoid leaking hyperscan struct
This commit is contained in:
Luca Deri
2019-05-08 12:13:23 +02:00
committed by GitHub
+1
View File
@@ -999,6 +999,7 @@ static void free_hyperscan_memory(struct hs *h) {
if(h) {
hs_free_scratch(h->scratch);
hs_free_database(h->database);
free(h);
}
}