[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-150-g2175e7fc9

wwp at claws-mail.org wwp at claws-mail.org
Sat Sep 11 14:13:15 CEST 2021


The branch, gtk3 has been updated
       via  2175e7fc9ebaebefe86216df8868def31bbe4339 (commit)
      from  7edb55b8c499cb475fd3320b9933d14e11f1e91a (commit)

Summary of changes:
 src/mbox.c | 2 ++
 1 file changed, 2 insertions(+)


- Log -----------------------------------------------------------------
commit 2175e7fc9ebaebefe86216df8868def31bbe4339
Author: wwp <subscript at free.fr>
Date:   Sat Sep 11 14:12:41 2021 +0200

    Fix CID 1491389: resource leak.

diff --git a/src/mbox.c b/src/mbox.c
index d01c2e613..c97f84fc9 100644
--- a/src/mbox.c
+++ b/src/mbox.c
@@ -346,6 +346,7 @@ gint lock_mbox(const gchar *base, LockType type)
 			if (retry >= 5) {
 				g_warning("can't create '%s'", lockfile);
 				claws_unlink(lockfile);
+				g_free(locklink);
 				g_free(lockfile);
 				return -1;
 			}
@@ -355,6 +356,7 @@ gint lock_mbox(const gchar *base, LockType type)
 			sleep(5);
 		}
 		claws_unlink(lockfile);
+		g_free(locklink);
 		g_free(lockfile);
 	} else if (type == LOCK_FLOCK) {
 		gint lockfd;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list