On error, don't leak the GByteArray buffer.

2002-05-30  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-store.c (camel_imap_store_readline):
	On error, don't leak the GByteArray buffer.

svn path=/trunk/; revision=17054
This commit is contained in:
Jeffrey Stedfast
2002-05-31 00:46:20 +00:00
committed by Jeffrey Stedfast
parent 74ae9178ab
commit b84dbb018b
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2002-05-30 Jeffrey Stedfast <fejj@ximian.com>
* 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.

View File

@ -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;
}