Fix Coverity Scan CID 300402 (Variable header going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user