projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
845a691
)
gprs: Fixing mem leak
author
Lasse.Kunnasluoto@tieto.com
<Lasse.Kunnasluoto@tieto.com>
Mon, 10 Jan 2011 07:08:54 +0000
(09:08 +0200)
committer
Denis Kenzior
<denkenz@gmail.com>
Mon, 10 Jan 2011 20:57:32 +0000
(14:57 -0600)
src/gprs.c
patch
|
blob
|
history
diff --git
a/src/gprs.c
b/src/gprs.c
index
58166f8
..
aeb505f
100644
(file)
--- 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;