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

This commit is contained in:
Dong Anyuan
2019-05-28 21:19:17 +09:00
parent 5e000215a3
commit 9176f90a3d
@@ -1088,6 +1088,7 @@ int flexran_agent_mac_create_empty_dl_config(mid_t mod_id, Protocol__FlexranMess
*msg = malloc(sizeof(Protocol__FlexranMessage));
if(*msg == NULL) {
free(dl_mac_config_msg);
free(header);
goto error;
}