[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-316-gd4c46b213

wwp at claws-mail.org wwp at claws-mail.org
Tue Oct 5 16:50:25 CEST 2021


The branch, gtk3 has been updated
       via  d4c46b2138531648962f7fbd2587c2dad2367135 (commit)
      from  8afdad641552eb821b135d93fcdff1c68b22150c (commit)

Summary of changes:
 src/imap.c | 2 ++
 src/main.c | 1 +
 2 files changed, 3 insertions(+)


- Log -----------------------------------------------------------------
commit d4c46b2138531648962f7fbd2587c2dad2367135
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 fecb4b308..cda01e090 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 e5733e100..419b132aa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2353,6 +2353,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