about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/xmpp/roster_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/roster_list.c b/src/xmpp/roster_list.c
index 4df7d865..4c4f4108 100644
--- a/src/xmpp/roster_list.c
+++ b/src/xmpp/roster_list.c
@@ -260,7 +260,7 @@ roster_remove(const char *const name, const char *const barejid)
     if (contact) {
         GList *resources = p_contact_get_available_resources(contact);
         while (resources) {
-            GString *fulljid = g_string_new(strdup(barejid));
+            GString *fulljid = g_string_new(barejid);
             g_string_append(fulljid, "/");
             g_string_append(fulljid, resources->data);
             autocomplete_remove(roster->fulljid_ac, fulljid->str);