From 1fc61048fcc2c40e5754bd1f8a43db1f11deba09 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 29 May 2002 20:36:46 +0000 Subject: Only free the LOGOUT response if it is non-NULL. 2002-05-29 Jeffrey Stedfast * providers/imap/camel-imap-store.c (connect_to_server): Only free the LOGOUT response if it is non-NULL. svn path=/trunk/; revision=17036 --- camel/ChangeLog | 5 +++++ camel/providers/imap/camel-imap-store.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index ebe58c0678..4a8cf3d0ae 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2002-05-29 Jeffrey Stedfast + + * providers/imap/camel-imap-store.c (connect_to_server): Only free + the LOGOUT response if it is non-NULL. + 2002-05-28 Not Zed * providers/local/camel-maildir-folder.c (maildir_refresh_info): diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index 7da066ecd6..dd73f084eb 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -655,7 +655,8 @@ connect_to_server (CamelService *service, int ssl_mode, int try_starttls, CamelE if (clean_quit) { /* try to disconnect cleanly */ response = camel_imap_command (store, NULL, ex, "LOGOUT"); - camel_imap_response_free_without_processing (store, response); + if (response) + camel_imap_response_free_without_processing (store, response); } camel_object_unref (CAMEL_OBJECT (store->istream)); -- cgit