[balsa/gtk3] Fix mem leak on error



commit 63a56cd379a104e5ff9ea289658e1799c4e2d0a5
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jul 15 20:04:54 2012 -0400

    Fix mem leak on error
    
    	* src/mailbox-conf.c (mailbox_conf_delete): fix mem leak on
    	error.

 ChangeLog          |    5 +++++
 src/mailbox-conf.c |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index beda49e..ec0f803 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-07-15  Albrecht DreÃ
 
+	* src/mailbox-conf.c (mailbox_conf_delete):fix mem leak on
+	error.
+
+2012-07-15  Albrecht DreÃ
+
 	* src/information-dialog.c (balsa_information_real): fix mem
 	leak on NULL main widget.
 
diff --git a/src/mailbox-conf.c b/src/mailbox-conf.c
index c703d36..408a41e 100644
--- a/src/mailbox-conf.c
+++ b/src/mailbox-conf.c
@@ -499,6 +499,7 @@ mailbox_conf_delete(BalsaMailboxNode * mbnode)
                               _("Folder deletion failed. Reason: %s"),
                               err ? err->message : "unknown");
             g_clear_error(&err);
+            g_free(url);
         }
 	return;
     }



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