From f190d2c5f233ab0986af11a72094c2666b561c70 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 19 Oct 2019 07:40:59 +0200 Subject: Free prof_identifier in case of reconnect Bedore we assign it new. --- src/xmpp/connection.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/xmpp') 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; } -- cgit 1.4.1-2-gfad0