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

This commit is contained in:
Dong Anyuan
2019-05-28 22:20:15 +09:00
parent 3c1f80f47b
commit 8fcce371d8
@@ -1214,6 +1214,10 @@ int flexran_agent_mac_create_empty_ul_config(mid_t mod_id, Protocol__FlexranMess
return 0;
error:
if(header){
free(header);
header = NULL;
}
return -1;
}