projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
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 d09fd635a8485ae955ae8e028b2ff4028c290aab..483108815f2ead9ddd9473f3c2b4a4885fd3df2e 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)
{
-
return
-(nl_send_auto_complete(sock_rtnl, msg)
+
int s =
-(nl_send_auto_complete(sock_rtnl, msg)
|| nl_wait_for_ack(sock_rtnl));
+ nlmsg_free(msg);
+ return s;
}
int system_bridge_addbr(struct device *bridge)