projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffca78b
)
wispr: Possible memory leak in error case
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Wed, 2 May 2012 09:56:51 +0000
(12:56 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Wed, 2 May 2012 12:37:54 +0000
(15:37 +0300)
src/wispr.c
patch
|
blob
|
history
diff --git
a/src/wispr.c
b/src/wispr.c
index
2126197
..
034cced
100644
(file)
--- a/
src/wispr.c
+++ b/
src/wispr.c
@@
-463,8
+463,10
@@
static gboolean wispr_route_request(const char *address, int ai_family,
break;
}
- if (result < 0)
+ if (result < 0) {
+ g_free(route);
return FALSE;
+ }
route->address = strdup(address);
route->if_index = if_index;