Skip to content

Commit

Permalink
Drop now-superfluous g_key_file_free()
Browse files Browse the repository at this point in the history
Now that we auto-free g_key_file stuff, we shouldn't manually free them
anymore.

Fixes: ab41c4f
Reported-By: Hilko Bengen <[email protected]>
  • Loading branch information
yoe committed Apr 3, 2024
1 parent c1899cf commit ac83952
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nbd-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,6 @@ GArray* parse_cfile(gchar* f, struct generic_conf *const genconf, bool expect_ge
G_KEY_FILE_KEEP_TRANSLATIONS, &err)) {
g_set_error(e, NBDS_ERR, NBDS_ERR_CFILE_NOTFOUND, "Could not open config file %s: %s",
f, err->message);
g_key_file_free(cfile);
return retval;
}
startgroup = g_key_file_get_start_group(cfile);
Expand Down

0 comments on commit ac83952

Please sign in to comment.