summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-database.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-08 13:27:28 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-08 13:27:28 +0000
commitb35ac6078fae8ff8d04d6fd7ea725fc8bf71ce3e (patch)
treea9be56f2fd50d0b5133a214560a8996b6ae4ff6f /hcid/dbus-database.c
parentb6ed588dfb99c4b3d12626edb95ff4191351c7b6 (diff)
Small optimization
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;