station: fix leak on parse_neighbor_report
This commit is contained in:
parent
9f33740d41
commit
7b2ce98abd
|
@ -1998,9 +1998,12 @@ static void parse_neighbor_report(struct station *station,
|
||||||
scan_freq_set_add(freq_set_no_md, current_freq);
|
scan_freq_set_add(freq_set_no_md, current_freq);
|
||||||
*set = freq_set_no_md;
|
*set = freq_set_no_md;
|
||||||
scan_freq_set_free(freq_set_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;
|
*set = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void station_neighbor_report_cb(struct netdev *netdev, int err,
|
static void station_neighbor_report_cb(struct netdev *netdev, int err,
|
||||||
const uint8_t *reports,
|
const uint8_t *reports,
|
||||||
|
|
Loading…
Reference in New Issue