Commit 23c44e3d authored by Moritz Lipp's avatar Moritz Lipp

Close file stream in config_parse

parent b7d57f5f
......@@ -70,6 +70,7 @@ girara_config_parse(girara_session_t* session, const char* path)
girara_list_t* argument_list = girara_list_new();
if (argument_list == NULL) {
free(line);
fclose(file);
return;
}
......@@ -79,6 +80,7 @@ girara_config_parse(girara_session_t* session, const char* path)
}
} else {
girara_list_free(argument_list);
fclose(file);
free(line);
return;
}
......@@ -103,4 +105,6 @@ girara_config_parse(girara_session_t* session, const char* path)
g_strfreev(argv);
free(line);
}
fclose(file);
}
......@@ -261,6 +261,8 @@ girara_file_read(const char* path)
buffer = tmp;
buffer[i] = '\0';
fclose(file);
return buffer;
error_free:
......
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