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:
85938c2
)
memoryleak: remove the element when not needed
author
Jukka Rissanen
<jukka.rissanen@nokia.com>
Fri, 31 Dec 2010 09:57:14 +0000
(11:57 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 31 Dec 2010 18:12:07 +0000
(10:12 -0800)
src/ipv4.c
patch
|
blob
|
history
diff --git
a/src/ipv4.c
b/src/ipv4.c
index
da115ed
..
c864c72
100644
(file)
--- a/
src/ipv4.c
+++ b/
src/ipv4.c
@@
-147,6
+147,8
@@
static void ipv4_remove(struct connman_element *element)
if ((__connman_inet_modify_address(RTM_DELADDR, 0, element->index,
AF_INET, address, peer, prefixlen, broadcast) < 0))
DBG("address removal failed");
+
+ connman_element_unref(element);
}
static struct connman_driver ipv4_driver = {