3
0
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:
James Prestwood 2021-01-29 15:21:07 -08:00 committed by Denis Kenzior
parent 9f33740d41
commit 7b2ce98abd

View File

@ -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,