talons

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

commit 1f6055001e2161a2888612cb74ebc6294a6ed9e6
parent 29baace4fb29e7c1684d3cfaf6d3baf2dc3ba48d
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;