summaryrefslogtreecommitdiff
path: root/hald/hald_dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'hald/hald_dbus.c')
-rw-r--r--hald/hald_dbus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hald/hald_dbus.c b/hald/hald_dbus.c
index 697fb75e..c0cb8c27 100644
--- a/hald/hald_dbus.c
+++ b/hald/hald_dbus.c
@@ -4158,8 +4158,12 @@ hald_exec_method_cb (HalDevice *d, guint32 exit_type,
dbus_message_unref (reply);
} else if (exp_name != NULL && exp_detail != NULL) {
if (!is_valid_interface_name (exp_name)) {
- exp_detail = g_strconcat (exp_name, " \n ", exp_detail, NULL);
+ gchar *old_detail = exp_detail;
+
+ exp_detail = g_strconcat (exp_name, " \n ", old_detail, NULL);
exp_name = "org.freedesktop.Hal.Device.UnknownError";
+
+ g_free (old_detail);
}
reply = dbus_message_new_error (message, exp_name, exp_detail);
if (reply == NULL) {