[gmime/gmime-2-4] Fixed a memory leak in header decoding.



commit e9beda3fcb331bb1b63822175d577632530b8fc1
Author: Jeffrey Stedfast <jeff xamarin com>
Date:   Thu Jan 5 10:28:49 2012 -0500

    Fixed a memory leak in header decoding.
    
    2012-01-05  Jeffrey Stedfast  <fejj gnome org>
    
    	* gmime/gmime-utils.c (rfc2047_decode_tokens): Fixed a memory leak.

 ChangeLog           |    4 ++++
 gmime/gmime-utils.c |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6c329a7..13b92e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-05  Jeffrey Stedfast  <fejj gnome org>
+
+	* gmime/gmime-utils.c (rfc2047_decode_tokens): Fixed a memory leak.
+
 2011-12-23  Jeffrey Stedfast  <fejj gnome org>
 
 	* README: Bumped version
diff --git a/gmime/gmime-utils.c b/gmime/gmime-utils.c
index 06d53fa..83d7e0f 100644
--- a/gmime/gmime-utils.c
+++ b/gmime/gmime-utils.c
@@ -2266,6 +2266,7 @@ rfc2047_decode_tokens (rfc2047_token *tokens, size_t buflen)
 				g_mime_iconv_close (cd);
 				
 				g_string_append_len (decoded, str, len);
+				g_free (str);
 				
 #if w(!)0
 				if (ninval > 0) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]