summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-database.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-database.c')
-rw-r--r--hcid/dbus-database.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hcid/dbus-database.c b/hcid/dbus-database.c
index 5924beb6..8c5880e7 100644
--- a/hcid/dbus-database.c
+++ b/hcid/dbus-database.c
@@ -332,9 +332,7 @@ int remove_record(DBusConnection *conn, const char *sender,
remove_record_from_server(handle);
- if (user_record->sender)
- g_free(user_record->sender);
-
+ g_free(user_record->sender);
g_free(user_record);
return 0;