Commit 70cf9521 authored by Dong Anyuan's avatar Dong Anyuan

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

parent a357634b
......@@ -84,6 +84,9 @@ flexran_agent_async_channel_t * flexran_agent_async_channel_info(mid_t mod_id, c
error:
LOG_I(FLEXRAN_AGENT, "%s(): there was an error\n", __func__);
if (channel){
free(channel);
}
return 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