Commit 944a9183 authored by Daniel Salzman's avatar Daniel Salzman

confdb: free db iterator if begin fails with no entry

parent c84afb5b
......@@ -776,6 +776,7 @@ int conf_db_iter_begin(
out.code = check_iter(conf, &out);
if (out.code != KNOT_EOK) {
out.code = KNOT_ENOENT; // Treat all errors as no entry.
conf_db_iter_finish(conf, &out);
goto iter_begin_error;
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