projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c6bf43
)
Fix CID 1491058: resource leak.
author
wwp
<subscript@free.fr>
Tue, 5 Oct 2021 07:38:10 +0000
(09:38 +0200)
committer
wwp
<subscript@free.fr>
Tue, 5 Oct 2021 07:38:10 +0000
(09:38 +0200)
src/ldif.c
patch
|
blob
|
history
diff --git
a/src/ldif.c
b/src/ldif.c
index 086ab0b2cd987824b2a1437dc1b6cad2b43093d9..a7761f21df9763a0e4614590c3ea7bdb36dfa77f 100644
(file)
--- 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