mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 23:15:10 +03:00
[802.11] Fix memory leak on unsuccessful probes
When a probe found no results, the list head of beacons would not be freed, leaking 16 bytes of memory per probe. Signed-off-by: Michael Brown <mcb30@etherboot.org>
This commit is contained in:
committed by
Michael Brown
parent
0b3c88e035
commit
fc9750a68d
@@ -1521,7 +1521,6 @@ net80211_probe_finish_best ( struct net80211_probe_ctx *ctx )
|
|||||||
DBGC ( ctx->dev, "802.11 %p probe: found nothing for '%s'\n",
|
DBGC ( ctx->dev, "802.11 %p probe: found nothing for '%s'\n",
|
||||||
ctx->dev, ctx->essid );
|
ctx->dev, ctx->essid );
|
||||||
|
|
||||||
if ( ! list_empty ( ctx->beacons ) )
|
|
||||||
net80211_free_wlanlist ( ctx->beacons );
|
net80211_free_wlanlist ( ctx->beacons );
|
||||||
|
|
||||||
net80211_keep_mgmt ( ctx->dev, ctx->old_keep_mgmt );
|
net80211_keep_mgmt ( ctx->dev, ctx->old_keep_mgmt );
|
||||||
|
|||||||
Reference in New Issue
Block a user