[balsa] pop3: Do not leak the filter-cmd
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] pop3: Do not leak the filter-cmd
- Date: Thu, 14 Feb 2019 21:06:20 +0000 (UTC)
commit 376b622de322d42dd3e347ab22228d90820bfca5
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Feb 14 15:49:45 2019 -0500
pop3: Do not leak the filter-cmd
libbalsa/mailbox_pop3.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index e8561e3c0..dd6adae69 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -135,8 +135,10 @@ static void
libbalsa_mailbox_pop3_finalize(GObject * object)
{
LibBalsaMailboxRemote *remote = LIBBALSA_MAILBOX_REMOTE(object);
+ LibBalsaMailboxPop3 *mailbox = LIBBALSA_MAILBOX_POP3(object);
g_object_unref(G_OBJECT(remote->server));
+ g_free(mailbox->filter_cmd);
if (G_OBJECT_CLASS(parent_class)->finalize)
G_OBJECT_CLASS(parent_class)->finalize(object);
@@ -750,6 +752,7 @@ libbalsa_mailbox_pop3_load_config(LibBalsaMailbox * mailbox,
pop->disable_apop = libbalsa_conf_get_bool("DisableApop=false");
pop->enable_pipe = libbalsa_conf_get_bool("EnablePipe=false");
pop->filter = libbalsa_conf_get_bool("Filter=false");
+ g_free(pop->filter_cmd);
pop->filter_cmd = libbalsa_conf_get_string("FilterCmd");
if(pop->filter_cmd && *pop->filter_cmd == '\0') {
g_free(pop->filter_cmd); pop->filter_cmd = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]