about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/omemo/store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/omemo/store.c b/src/omemo/store.c
index fe7cf771..2aabd4d5 100644
--- a/src/omemo/store.c
+++ b/src/omemo/store.c
@@ -388,7 +388,7 @@ save_identity(const signal_protocol_address *address, uint8_t *key_data,
     /* Long term storage */
     char *key_b64 = g_base64_encode(key_data, key_len);
     char *device_id = g_strdup_printf("%d", address->device_id);
-    g_key_file_set_string(omemo_trust_keyfile(), address->name, strdup(device_id), key_b64);
+    g_key_file_set_string(omemo_trust_keyfile(), address->name, device_id, key_b64);
     g_free(device_id);
     g_free(key_b64);