All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gprs: Fixing mem leak
@ 2011-01-10  7:08 Lasse.Kunnasluoto
  2011-01-10 20:59 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Lasse.Kunnasluoto @ 2011-01-10  7:08 UTC (permalink / raw)
  To: ofono

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

---
 src/gprs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gprs.c b/src/gprs.c
index 58166f8..aeb505f 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -1152,8 +1152,10 @@ static struct pri_context *pri_context_create(struct ofono_gprs *gprs,
 
 	if (name == NULL) {
 		name = gprs_context_default_name(type);
-		if (name == NULL)
+		if (name == NULL) {
+			g_free(context);
 			return NULL;
+		}
 	}
 
 	context->gprs = gprs;
-- 
1.7.0.4


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

* Re: [PATCH] gprs: Fixing mem leak
  2011-01-10  7:08 [PATCH] gprs: Fixing mem leak Lasse.Kunnasluoto
@ 2011-01-10 20:59 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-01-10 20:59 UTC (permalink / raw)
  To: ofono

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

Hi Lasse,

On 01/10/2011 01:08 AM, Lasse.Kunnasluoto(a)tieto.com wrote:
> ---
>  src/gprs.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

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

end of thread, other threads:[~2011-01-10 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10  7:08 [PATCH] gprs: Fixing mem leak Lasse.Kunnasluoto
2011-01-10 20:59 ` 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.