[Commits] [SCM] claws branch, master, updated. 3.18.0-254-g6e380d8a1
wwp at claws-mail.org
wwp at claws-mail.org
Tue Oct 5 16:50:16 CEST 2021
The branch, master has been updated
via 6e380d8a14b7a5196e473f4d76aadfd73dd4130c (commit)
from e2bde697bdef25a7844f7a5af0ceb9e3fbddfc17 (commit)
Summary of changes:
src/imap.c | 2 ++
src/main.c | 1 +
2 files changed, 3 insertions(+)
- Log -----------------------------------------------------------------
commit 6e380d8a14b7a5196e473f4d76aadfd73dd4130c
Author: wwp <subscript at free.fr>
Date: Tue Oct 5 16:49:50 2021 +0200
Fix CID 1491365: resource leak.
diff --git a/src/imap.c b/src/imap.c
index 1ad6cc5ca..fdd048be6 100644
--- a/src/imap.c
+++ b/src/imap.c
@@ -1294,6 +1294,8 @@ static IMAPSession *imap_session_new(Folder * folder,
SESSION(session)->sock = NULL;
imap_safe_destroy(session);
}
+ imap_session_destroy(session);
+ session_destroy(SESSION(session));
return NULL;
}
diff --git a/src/main.c b/src/main.c
index 425ad02cd..fab75e8df 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2366,6 +2366,7 @@ gchar *claws_get_socket_name(void)
/* old versions used a sock in $TMPDIR/claws-mail-$UID */
debug_print("Using legacy socket %s\n", socket_dir);
filename = g_strdup(socket_dir);
+ g_free(socket_dir);
return filename;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list