mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
station: fix leak on parse_neighbor_report
This commit is contained in:
parent
9f33740d41
commit
7b2ce98abd
@ -1998,8 +1998,11 @@ static void parse_neighbor_report(struct station *station,
|
||||
scan_freq_set_add(freq_set_no_md, current_freq);
|
||||
*set = freq_set_no_md;
|
||||
scan_freq_set_free(freq_set_md);
|
||||
} else
|
||||
} else {
|
||||
scan_freq_set_free(freq_set_no_md);
|
||||
scan_freq_set_free(freq_set_md);
|
||||
*set = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void station_neighbor_report_cb(struct netdev *netdev, int err,
|
||||
|
Loading…
Reference in New Issue
Block a user