filter: avoid a memory leak per @amdj
This commit is contained in:
parent
0cbb1ba9f0
commit
09784400f2
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ setfilter(const char *check, const char *data, const char **error)
|
|||
r = hs_alloc_scratch(db, &filter_scratch);
|
||||
if (r != HS_SUCCESS) {
|
||||
if (error) *error = "couldn't allocate scratch";
|
||||
hs_free_database(db);
|
||||
return -1;
|
||||
}
|
||||
if (filter_db) {
|
||||
|
|
Loading…
Reference in a new issue