Fix Coverity Scan CID 300370 (Variable reconf_param going out of scope leaks the storage it points to.)

This commit is contained in:
Dong Anyuan
2019-06-20 11:04:43 +09:00
parent c65e3d2eea
commit 864e5df407
+2
View File
@@ -818,6 +818,8 @@ int flexran_agent_rrc_measurement(mid_t mod_id, const void *params, Protocol__Fl
flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(&ctxt, ue_context_p, 0, reconf_param);
}
*msg = NULL;
free(reconf_param);
reconf_param = NULL;
return 0;
}