Commit 0318139b authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300476 (Variable dl_mac_config_msg going out of scope...

Fix Coverity Scan CID 300476 (Variable dl_mac_config_msg going out of scope leaks the storage it points to.)
parent 39d4c280
......@@ -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;
}
......
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