Commit f9d4f90f authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300396 (Variable mac_MainConfig going out of scope leaks...

Fix Coverity Scan CID 300396 (Variable mac_MainConfig going out of scope leaks the storage it points to.)
parent 6daacdd2
......@@ -3927,6 +3927,19 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
}
free(quantityConfig);
}
if(mac_MainConfig){
if(mac_MainConfig->ul_SCH_Config){
free(mac_MainConfig->ul_SCH_Config);
mac_MainConfig->ul_SCH_Config = NULL;
}
if(mac_MainConfig->phr_Config){
free(mac_MainConfig->phr_Config);
mac_MainConfig->phr_Config = NULL;
}
free(mac_MainConfig);
mac_MainConfig = NULL;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment