All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] driver: ublox: fix memory leak in release
@ 2016-11-14 15:24 Dragos Tatulea
  2016-11-14 17:28 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Dragos Tatulea @ 2016-11-14 15:24 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 526 bytes --]

---
 drivers/ubloxmodem/gprs-context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ubloxmodem/gprs-context.c b/drivers/ubloxmodem/gprs-context.c
index 7ef05b7..3069e88 100644
--- a/drivers/ubloxmodem/gprs-context.c
+++ b/drivers/ubloxmodem/gprs-context.c
@@ -442,6 +442,7 @@ static void ublox_gprs_context_remove(struct ofono_gprs_context *gc)
 	g_at_chat_unref(gcd->chat);
 
 	memset(gcd, 0, sizeof(*gcd));
+	g_free(gcd);
 }
 
 static struct ofono_gprs_context_driver driver = {
-- 
2.7.4


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

* Re: [PATCH] driver: ublox: fix memory leak in release
  2016-11-14 15:24 [PATCH] driver: ublox: fix memory leak in release Dragos Tatulea
@ 2016-11-14 17:28 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2016-11-14 17:28 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

Hi Dragos,

On 11/14/2016 09:24 AM, Dragos Tatulea wrote:
> ---
>   drivers/ubloxmodem/gprs-context.c | 1 +
>   1 file changed, 1 insertion(+)
>

Applied, thanks.

Regards,
-Denis


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

end of thread, other threads:[~2016-11-14 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-14 15:24 [PATCH] driver: ublox: fix memory leak in release Dragos Tatulea
2016-11-14 17:28 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.