projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3af40a3
)
system-linux: free netlink messages after sending
author
Steven Barth
<steven@midlink.org>
Mon, 26 Sep 2011 17:20:05 +0000
(17:20 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 26 Sep 2011 17:20:05 +0000
(17:20 +0000)
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index
d09fd63
..
4831088
100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-36,8
+36,10
@@
int system_init(void)
static int system_rtnl_call(struct nl_msg *msg)
{
static int system_rtnl_call(struct nl_msg *msg)
{
-
return
-(nl_send_auto_complete(sock_rtnl, msg)
+
int s =
-(nl_send_auto_complete(sock_rtnl, msg)
|| nl_wait_for_ack(sock_rtnl));
|| nl_wait_for_ack(sock_rtnl));
+ nlmsg_free(msg);
+ return s;
}
int system_bridge_addbr(struct device *bridge)
}
int system_bridge_addbr(struct device *bridge)