Fix Coverity Scan CID 300435 (Variable channel going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -84,6 +84,9 @@ flexran_agent_async_channel_t * flexran_agent_async_channel_info(mid_t mod_id, c
|
|||||||
|
|
||||||
error:
|
error:
|
||||||
LOG_I(FLEXRAN_AGENT, "%s(): there was an error\n", __func__);
|
LOG_I(FLEXRAN_AGENT, "%s(): there was an error\n", __func__);
|
||||||
|
if (channel){
|
||||||
|
free(channel);
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user