netipsec: Don't leak memory when deep copy fails
Reported by: Coverity CID: 1331693 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
2769d06203
commit
5a8c498f2e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298676
@ -977,6 +977,7 @@ ipsec_deepcopy_policy(struct secpolicy *src)
|
||||
ipsec_delisr(p);
|
||||
p = NULL;
|
||||
}
|
||||
KEY_FREESP(&dst);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user