about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-19 07:40:59 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-19 07:40:59 +0200
commitf190d2c5f233ab0986af11a72094c2666b561c70 (patch)
treed15d8e45ef44dfa89add48269f49d687c84b06e2 /src/xmpp
parentc3912df05b17c513a54b237227a8c96c51bd41ca (diff)
downloadprofani-tty-f190d2c5f233ab0986af11a72094c2666b561c70.tar.gz
Free prof_identifier in case of reconnect
Bedore we assign it new.
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index e35f19ff..c2ca16fd 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -678,6 +678,9 @@ static void _calculate_identifier(const char *barejid)
     assert(b64 != NULL);
     g_free(hmac);
 
+    //in case of reconnect
+    free(prof_identifier);
+
     prof_identifier = b64;
 }