From d79364358a6e222d6e0530a8072c53313e55b044 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 8 Jun 2016 22:23:00 +0100 Subject: Fix memory leaks --- src/otr/otr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/otr') diff --git a/src/otr/otr.c b/src/otr/otr.c index 5fc51038..99697411 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -231,6 +231,9 @@ otr_on_connect(ProfAccount *account) return; } + if (user_state) { + otrl_userstate_free(user_state); + } user_state = otrl_userstate_create(); gcry_error_t err = 0; -- cgit 1.4.1-2-gfad0