13
0

Fix small memory leak

g_file_open_tmp() requires the caller to free the filename.
This commit is contained in:
Robin Gareus 2023-01-16 05:11:49 +01:00
parent b8d07b8be2
commit e5eafea128
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -604,6 +604,7 @@ KeyEditor::print () const
if (err) {
error << string_compose (_("Could not save bindings to file (%1)"), err->message) << endmsg;
g_error_free (err);
g_free (file_name);
}
return;
}
@ -613,4 +614,5 @@ KeyEditor::print () const
#endif
PBD::open_uri (string_compose ("file:///%1", file_name));
g_free (file_name);
}