qcacmn: Fix invalid memory free
Problem: Memory is allocated for avoid_freq_ind in reg_call_chan_change_cbks function and freed when avoid_freq_ind is NULL. Solution: Memory is freed when avoid_freq_ind is not NULL. Change-Id: I263441c5b05755054ee581b20af191d93c3dea5e CRs-Fixed: 2124580
This commit is contained in:
@@ -2210,7 +2210,7 @@ skip_ch_avoid_ind:
|
||||
cbk_list[ctr].arg);
|
||||
}
|
||||
qdf_mem_free(cur_chan_list);
|
||||
if (!avoid_freq_ind)
|
||||
if (avoid_freq_ind)
|
||||
qdf_mem_free(avoid_freq_ind);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user