projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8185776
)
libiwinfo: fix multiple memory leaks on nl80211 backend
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 6 Sep 2011 00:46:13 +0000
(
00:46
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 6 Sep 2011 00:46:13 +0000
(
00:46
+0000)
contrib/package/iwinfo/src/iwinfo_nl80211.c
patch
|
blob
|
history
diff --git
a/contrib/package/iwinfo/src/iwinfo_nl80211.c
b/contrib/package/iwinfo/src/iwinfo_nl80211.c
index 4ec330f1b701e3d797451b7d17f19ac34b623df0..280714ee528663a2c63769811d233964ea4eb18c 100644
(file)
--- a/
contrib/package/iwinfo/src/iwinfo_nl80211.c
+++ b/
contrib/package/iwinfo/src/iwinfo_nl80211.c
@@
-742,7
+742,7
@@
static void nl80211_fill_signal(const char *ifname, struct nl80211_rssi_rate *r)
if (req)
{
nl80211_cb(req, nl80211_fill_signal_cb, r);
- nl80211_
send(req
);
+ nl80211_
free(nl80211_send(req)
);
nl80211_free(req);
}
}
@@
-831,7
+831,7
@@
int nl80211_get_noise(const char *ifname, int *buf)
noise = 0;
nl80211_cb(req, nl80211_get_noise_cb, &noise);
- nl80211_
send(req
);
+ nl80211_
free(nl80211_send(req)
);
nl80211_free(req);
if (noise)
@@
-1122,7
+1122,7
@@
int nl80211_get_assoclist(const char *ifname, char *buf, int *len)
if (req)
{
nl80211_cb(req, nl80211_get_assoclist_cb, &ac);
- nl80211_
send(req
);
+ nl80211_
free(nl80211_send(req)
);
nl80211_free(req);
}
}