[Commits] [SCM] claws branch, master, updated. 3.18.0-101-g1f6055001

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


The branch, master has been updated
       via  1f6055001e2161a2888612cb74ebc6294a6ed9e6 (commit)
      from  29baace4fb29e7c1684d3cfaf6d3baf2dc3ba48d (commit)

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


- Log -----------------------------------------------------------------
commit 1f6055001e2161a2888612cb74ebc6294a6ed9e6
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 30c518d97..717df9ca3 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