Commit 156f2ea5 authored by Michael Tremer's avatar Michael Tremer

writer: Check if stringpool has been initialized before free

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 45197e29
......@@ -172,7 +172,8 @@ static void loc_writer_free(struct loc_writer* writer) {
loc_network_tree_unref(writer->networks);
// Unref the string pool
loc_stringpool_unref(writer->pool);
if (writer->pool)
loc_stringpool_unref(writer->pool);
loc_unref(writer->ctx);
free(writer);
......
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