From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau <frederic.dalleau@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] hfpmodem: Fix g_at_chat leak
Date: Thu, 04 Aug 2011 14:48:02 +0200 [thread overview]
Message-ID: <1312462082-16808-1-git-send-email-frederic.dalleau@linux.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
---
drivers/hfpmodem/call-volume.c | 1 +
drivers/hfpmodem/network-registration.c | 1 +
drivers/hfpmodem/voicecall.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/hfpmodem/call-volume.c b/drivers/hfpmodem/call-volume.c
index df83657..c0c4869 100644
--- a/drivers/hfpmodem/call-volume.c
+++ b/drivers/hfpmodem/call-volume.c
@@ -206,6 +206,7 @@ static void hfp_call_volume_remove(struct ofono_call_volume *cv)
ofono_call_volume_set_data(cv, NULL);
+ g_at_chat_unref(vd->chat);
g_free(vd);
}
diff --git a/drivers/hfpmodem/network-registration.c b/drivers/hfpmodem/network-registration.c
index 7d26424..6703885 100644
--- a/drivers/hfpmodem/network-registration.c
+++ b/drivers/hfpmodem/network-registration.c
@@ -331,6 +331,7 @@ static void hfp_netreg_remove(struct ofono_netreg *netreg)
ofono_netreg_set_data(netreg, NULL);
+ g_at_chat_unref(nd->chat);
g_free(nd);
}
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index 3c49870..9903db0 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -1166,6 +1166,7 @@ static void hfp_voicecall_remove(struct ofono_voicecall *vc)
ofono_voicecall_set_data(vc, NULL);
+ g_at_chat_unref(vd->chat);
g_free(vd);
}
--
1.7.1
next reply other threads:[~2011-08-04 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-04 12:48 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau [this message]
2011-08-05 22:03 ` [PATCH] hfpmodem: Fix g_at_chat leak Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1312462082-16808-1-git-send-email-frederic.dalleau@linux.intel.com \
--to=frederic.dalleau@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox