* notmuch-config: fix small leak from 'g_key_file_to_data'

Signed-off-by: Dirk-Jan C. Binnema <djcb.bulk@gmail.com>
This commit is contained in:
Dirk-Jan C. Binnema 2009-12-02 09:11:24 +02:00 committed by Carl Worth
parent ea4cb3cbdc
commit 926c71e6b9

View file

@ -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;
}