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

This commit is contained in:
Dong Anyuan
2019-05-28 21:35:13 +09:00
parent 0b328f3315
commit af0e318a82
+3
View File
@@ -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;
}