diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-03 19:20:29 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-03 19:20:29 +0100 |
commit | 4f3b7e386cd32cdacdc287aaebd70677040eb316 (patch) | |
tree | 711b67498478840ea9cce198d1eeebeed1032c7c /src | |
parent | 0d74fdc37a734eafc907c2c5a52d6aef2d588e9b (diff) |
netlink: plug memory leak
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c index 064fad9..0c37a6c 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -229,7 +229,7 @@ out: } genlmsg_end(skb, hdr); if (done) { - cb->args[1] = cb->args[2] = 0; + cb->args[1] = 0; return 0; } cb->args[1] = (long)next_peer_cursor; |