[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-327-g1a6649b3f
wwp at claws-mail.org
wwp at claws-mail.org
Thu Oct 7 09:52:44 CEST 2021
The branch, gtk3 has been updated
via 1a6649b3f22aa6851435ed3c9772152fd99000c9 (commit)
from 9869b88395d4977eea4773953b41d337b7994949 (commit)
Summary of changes:
src/ldif.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 1a6649b3f22aa6851435ed3c9772152fd99000c9
Author: wwp <subscript at free.fr>
Date: Thu Oct 7 09:52:13 2021 +0200
Fix CID 1491058: resource leak (a good old one).
diff --git a/src/ldif.c b/src/ldif.c
index a7761f21d..8dfdb2c64 100644
--- a/src/ldif.c
+++ b/src/ldif.c
@@ -239,7 +239,7 @@ static void ldif_close_file( LdifFile *ldifFile ) {
/**
* Read line of text from file.
* \param ldifFile LDIF import control object.
- * \return ptr to buffer where line starts.
+ * \return ptr to buffer where line starts (must be freed by caller).
*/
static gchar *ldif_get_line( LdifFile *ldifFile ) {
gchar *buf = g_malloc(LDIFBUFSIZE);
@@ -279,8 +279,7 @@ static gchar *ldif_get_line( LdifFile *ldifFile ) {
}
buf[i] = '\0';
- /* Return a copy of buffer */
- return g_strdup( buf );
+ return buf;
}
/**
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list