[Commits] [SCM] claws branch, master, updated. 3.18.0-246-gb4b270844
wwp at claws-mail.org
wwp at claws-mail.org
Tue Oct 5 09:38:24 CEST 2021
The branch, master has been updated
via b4b2708444516520cf4dae3035f5b912b669b000 (commit)
from 7c6bf43b8339fc03f8c56fc346a9ba9ba6c5695f (commit)
Summary of changes:
src/ldif.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit b4b2708444516520cf4dae3035f5b912b669b000
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