[balsa] Do not allocate unused array



commit 6a7026c70300833c1cab0b8a6b46d58637c340ba
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Jan 23 17:51:29 2010 -0500

    Do not allocate unused array
    
    	* src/save-restore.c (config_identities_save): do not allocate
    	unused array.

 ChangeLog          |    5 +++++
 src/save-restore.c |    7 +------
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b6db36c..3fa9690 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-01-23  Peter Bloomfield
 
+	* src/save-restore.c (config_identities_save): do not allocate
+	unused array.
+
+2010-01-23  Peter Bloomfield
+
 	* src/message-window.c (destroy_message_window),
 	(mw_select_part_cb): do not crash on "select-part" signal.
 
diff --git a/src/save-restore.c b/src/save-restore.c
index 9fbc5e3..21ffecb 100644
--- a/src/save-restore.c
+++ b/src/save-restore.c
@@ -1703,17 +1703,12 @@ config_identities_save(void)
 {
     LibBalsaIdentity* ident;
     GList* list;
-    gchar** conf_vec, *prefix;
-
-    conf_vec = g_malloc(sizeof(gchar*) * g_list_length(balsa_app.identities));
+    gchar *prefix;
 
-    g_assert(conf_vec != NULL);
-    
     libbalsa_conf_push_group("identity");
     libbalsa_conf_set_string("CurrentIdentity", 
                             balsa_app.current_ident->identity_name);
     libbalsa_conf_pop_group();
-    g_free(conf_vec);
 
     config_remove_groups(IDENTITY_SECTION_PREFIX);
 



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