[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-308-g4aab5e403
wwp at claws-mail.org
wwp at claws-mail.org
Tue Oct 5 09:38:28 CEST 2021
The branch, gtk3 has been updated
via 4aab5e4039d6421e36a6ff57fcc8402a23f21c79 (commit)
from 216d11f75a839a5bb260b9752ae620cb94f591d6 (commit)
Summary of changes:
src/ldif.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 4aab5e4039d6421e36a6ff57fcc8402a23f21c79
Author: wwp <subscript at free.fr>
Date: Tue Oct 5 09:38:10 2021 +0200
Fix CID 1491058: resource leak.
diff --git a/src/ldif.c b/src/ldif.c
index 086ab0b2c..a7761f21d 100644
--- a/src/ldif.c
+++ b/src/ldif.c
@@ -257,7 +257,10 @@ static gchar *ldif_get_line( LdifFile *ldifFile ) {
if (claws_ferror( ldifFile->file ))
ldifFile->retVal = MGU_ERROR_READ;
if( ch == '\0' || ch == EOF ) {
- if( i == 0 ) return NULL;
+ if( i == 0 ) {
+ g_free(buf);
+ return NULL;
+ }
break;
}
#if HAVE_DOSISH_SYSTEM
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list