[evolution-data-server/gnome-3-8] Fix memory leak in camel_imapx_command_add_qresync_parameter().



commit 42151c2dd4d509775b43511026839094238afefc
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jul 20 18:45:46 2013 -0400

    Fix memory leak in camel_imapx_command_add_qresync_parameter().
    
    (cherry picked from commit 7deff979b9e3bfe38ce8e4474d436a0804f1a4cd)

 camel/camel-imapx-utils.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-imapx-utils.c b/camel/camel-imapx-utils.c
index 24fcdd5..bb40d5a 100644
--- a/camel/camel-imapx-utils.c
+++ b/camel/camel-imapx-utils.c
@@ -2158,6 +2158,9 @@ camel_imapx_command_add_qresync_parameter (CamelIMAPXCommand *ic,
 
                camel_imapx_command_add (
                        ic, " (%s %s)", seqs->str, uids->str);
+
+               g_string_free (seqs, TRUE);
+               g_string_free (uids, TRUE);
        }
 
        camel_imapx_command_add (ic, "))");


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