aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-05-12 02:39:53 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-12 02:39:53 +0800
commite17b3c90f4a2fc285d83a8badd780b258629b853 (patch)
tree33094dacf028a05a025f5ac1ff7855a64f4e3622 /camel/camel-mime-utils.c
parent62c8174bac8139b29a71ea79c879c4cbdd6cd064 (diff)
downloadgsoc2013-evolution-e17b3c90f4a2fc285d83a8badd780b258629b853.tar
gsoc2013-evolution-e17b3c90f4a2fc285d83a8badd780b258629b853.tar.gz
gsoc2013-evolution-e17b3c90f4a2fc285d83a8badd780b258629b853.tar.bz2
gsoc2013-evolution-e17b3c90f4a2fc285d83a8badd780b258629b853.tar.lz
gsoc2013-evolution-e17b3c90f4a2fc285d83a8badd780b258629b853.tar.xz
gsoc2013-evolution-e17b3c90f4a2fc285d83a8badd780b258629b853.tar.zst
gsoc2013-evolution-e17b3c90f4a2fc285d83a8badd780b258629b853.zip
Big bunch o memleaks fixed.
2000-05-11 NotZed <NotZed@HelixCode.com> * camel-mime-part.c (write_to_stream): Unref the filter after adding it to the filtering stream. * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_finalise): Free the folder path. * camel-folder-summary.c (camel_folder_summary_finalise): Free the summary path. * camel-internet-address.c (internet_decode): Free multiple entry addresses properly. * camel-mime-utils.c (header_decode_mailbox): Plugged another memleak, free text after converting it. (header_decode_addrspec): More leaks plugged. * camel-mime-message.c (finalize): Free message_uid. (finalize): Free the recipients hashtable. svn path=/trunk/; revision=2989
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 65bbdf32e8..3a2828ff36 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1276,6 +1276,7 @@ header_decode_addrspec(const char **in)
if (word) {
addr = g_string_append(addr, word);
header_decode_lwsp(&inptr);
+ g_free(word);
while (*inptr == '.' && word) {
inptr++;
addr = g_string_append_c(addr, '.');
@@ -1283,6 +1284,7 @@ header_decode_addrspec(const char **in)
if (word) {
addr = g_string_append(addr, word);
header_decode_lwsp(&inptr);
+ g_free(word);
} else {
w(g_warning("Invalid address spec: %s", *in));
}
@@ -1348,6 +1350,7 @@ header_decode_mailbox(const char **in)
text = header_decode_string(pre);
name = g_string_append(name, text);
g_free(pre);
+ g_free(text);
/* rfc_decode(pre) */
pre = header_decode_word(&inptr);