talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 2175e7fc9ebaebefe86216df8868def31bbe4339
parent 7edb55b8c499cb475fd3320b9933d14e11f1e91a
Author: wwp <subscript@free.fr>
Date:   Sat, 11 Sep 2021 14:12:41 +0200

Fix CID 1491389: resource leak.

Diffstat:
Msrc/mbox.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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;