Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5964E431FBD for ; Tue, 1 Dec 2009 23:11:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1-0oKrhjyjNG for ; Tue, 1 Dec 2009 23:11:36 -0800 (PST) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by olra.theworths.org (Postfix) with ESMTP id 33FCA431FC2 for ; Tue, 1 Dec 2009 23:11:34 -0800 (PST) Received: from djcbsoftware.nl (a88-112-254-208.elisa-laajakaista.fi [88.112.254.208]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 5391C151653; Wed, 2 Dec 2009 09:11:31 +0200 (EET) Received: by djcbsoftware.nl (Postfix, from userid 1000) id 13CDD39C549; Wed, 2 Dec 2009 09:11:25 +0200 (EET) From: "Dirk-Jan C. Binnema" To: notmuch@notmuchmail.org Date: Wed, 2 Dec 2009 09:11:24 +0200 Message-Id: <1259737885-15103-1-git-send-email-djcb.bulk@gmail.com> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH 1/2] * notmuch-config: fix small leak from 'g_key_file_to_data' X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 07:11:37 -0000 Signed-off-by: Dirk-Jan C. Binnema --- 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