Skip to content
Snippets Groups Projects
Commit db3cfa8b authored by DONG Anyuan's avatar DONG Anyuan
Browse files

Fix Coverity Scan CID 300387 (Using freed pointer req_msg.)

parent 42e3a139
No related branches found
No related tags found
No related merge requests found
...@@ -745,11 +745,14 @@ err_code_t flexran_agent_enable_cont_stats_update(mid_t mod_id, ...@@ -745,11 +745,14 @@ err_code_t flexran_agent_enable_cont_stats_update(mid_t mod_id,
Protocol__FlexranMessage *req_msg = NULL; Protocol__FlexranMessage *req_msg = NULL;
flexran_agent_stats_request(mod_id, xid, stats_req, &req_msg); flexran_agent_stats_request(mod_id, xid, stats_req, &req_msg);
stats_context[mod_id].stats_req = req_msg;
stats_context[mod_id].prev_stats_reply = NULL;
stats_context[mod_id].cont_update = 1; if (req_msg != NULL) {
stats_context[mod_id].xid = xid; stats_context[mod_id].stats_req = req_msg;
stats_context[mod_id].prev_stats_reply = NULL;
stats_context[mod_id].cont_update = 1;
stats_context[mod_id].xid = xid;
}
if (pthread_mutex_unlock(stats_context[mod_id].mutex)) { if (pthread_mutex_unlock(stats_context[mod_id].mutex)) {
goto error; goto error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment