about summary refs log tree commit diff stats
path: root/src/otr/otr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r--src/otr/otr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 04678d04..21bb222e 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -375,9 +375,7 @@ otr_keygen(ProfAccount *account)
         return;
     }
 
-    if (jid) {
-        free(jid);
-    }
+    free(jid);
     jid = strdup(account->jid);
     log_info("Generating OTR key for %s", jid);