memleak: free cellsearch buffer after scan

This commit is contained in:
Agmagor 2016-11-16 16:46:22 +01:00 committed by GitHub
parent d4a05eefe4
commit fd4eb44bfc
1 changed files with 1 additions and 0 deletions

View File

@ -218,6 +218,7 @@ int main(int argc, char **argv) {
srslte_rf_start_rx_stream(&rf);
n = srslte_ue_cellsearch_scan(&cs, found_cells, NULL);
srslte_ue_cellsearch_free(&cs);
if (n < 0) {
fprintf(stderr, "Error searching cell\n");
exit(-1);