wifi: mac80211: tests: fix memory leak

The code allocates the bitrates twice, but really
only should do that once. Remove the unconditional
allocation even though it's the same in both branches
of the switch, since the cleanup only handles those
two branches explicitly.

Link: https://patch.msgid.link/20260916115759.2cd8a91ed99d.I89c5068a3472e6296baf5a2d6832b733282d2b24@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg 2026-09-16 11:57:59 +02:00
commit 5c299357ec