From b84dbb018bd3c01f297755d20a2ee2dd3df55b07 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 31 May 2002 00:46:20 +0000 Subject: On error, don't leak the GByteArray buffer. 2002-05-30 Jeffrey Stedfast * providers/imap/camel-imap-store.c (camel_imap_store_readline): On error, don't leak the GByteArray buffer. svn path=/trunk/; revision=17054 --- camel/ChangeLog | 3 +++ camel/providers/imap/camel-imap-store.c | 1 + 2 files changed, 4 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 432aaa4ad7..5c024f3900 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2002-05-30 Jeffrey Stedfast + * providers/imap/camel-imap-store.c (camel_imap_store_readline): + On error, don't leak the GByteArray buffer. + * providers/imap/camel-imap-folder.c (imap_rescan): Free the response before checking for errors. I'm not sure this'll actually fix the memory leak here, but it might? Certainly can't hurt. diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index dd73f084eb..1e6284b572 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -2269,6 +2269,7 @@ camel_imap_store_readline (CamelImapStore *store, char **dest, CamelException *e g_strerror (errno)); camel_service_disconnect (CAMEL_SERVICE (store), FALSE, NULL); + g_byte_array_free (ba, TRUE); return -1; } -- cgit