diff --git a/bus/activation.c b/bus/activation.c index ee5efa8..6a44371 100644 --- a/bus/activation.c +++ b/bus/activation.c @@ -361,6 +361,8 @@ update_desktop_file_entry (BusActivation *activation, _dbus_string_get_const_data (filename)); exec = strdup (_dbus_replace_install_prefix (exec_tmp)); + dbus_free (exec_tmp); + exec_tmp = NULL; if (entry == NULL) /* New file */ { @@ -454,6 +456,7 @@ update_desktop_file_entry (BusActivation *activation, failed: dbus_free (name); dbus_free (exec_tmp); + dbus_free (exec); dbus_free (user); dbus_free (systemd_service); _dbus_string_free (&file_path);