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:
Shashikala Prabhu
2017-10-26 14:50:41 +05:30
committed by snandini
父節點 c6d785d033
當前提交 70f77c51bd

查看文件

@@ -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);
}