unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] * notmuch-config: fix small leak from 'g_key_file_to_data'
@ 2009-12-02  7:11 Dirk-Jan C. Binnema
  2009-12-02  7:11 ` [PATCH 2/2] * free the response data from 'prompt' Dirk-Jan C. Binnema
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk-Jan C. Binnema @ 2009-12-02  7:11 UTC (permalink / raw)
  To: notmuch


Signed-off-by: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
---
 notmuch-config.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/notmuch-config.c b/notmuch-config.c
index fc65d6b..95430db 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -317,9 +317,11 @@ notmuch_config_save (notmuch_config_t *config)
 	fprintf (stderr, "Error saving configuration to %s: %s\n",
 		 config->filename, error->message);
 	g_error_free (error);
+	g_free (data);
 	return 1;
     }
 
+    g_free (data);
     return 0;
 }
 
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-04 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02  7:11 [PATCH 1/2] * notmuch-config: fix small leak from 'g_key_file_to_data' Dirk-Jan C. Binnema
2009-12-02  7:11 ` [PATCH 2/2] * free the response data from 'prompt' Dirk-Jan C. Binnema
2009-12-04 19:18   ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).