diff options
author | James Booth <boothj5@gmail.com> | 2016-06-08 22:23:00 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-06-08 22:23:00 +0100 |
commit | d79364358a6e222d6e0530a8072c53313e55b044 (patch) | |
tree | 27e60fb3f295b7339cd46a7bef8965620c854963 /src/otr | |
parent | 4c03ee60667739d709d7f0d66a7c8173d103af24 (diff) | |
download | profani-tty-d79364358a6e222d6e0530a8072c53313e55b044.tar.gz |
Fix memory leaks
Diffstat (limited to 'src/otr')
-rw-r--r-- | src/otr/otr.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |