Commit 74f218f0 authored by Michael Tremer's avatar Michael Tremer

database: Fix use-after-free error after last iteration of search

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 15f79e2d
......@@ -688,6 +688,7 @@ LOC_EXPORT int loc_database_enumerator_next_as(
// No match
loc_as_unref(*as);
*as = NULL;
}
// Reset the index
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment