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; }