Fix potential memory leak.
Pointed-out by: pfg Approved by: pjd (mentor)
This commit is contained in:
parent
788ca347b8
commit
8133297684
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282101
@ -228,8 +228,10 @@ dns_getnameinfo(const nvlist_t *limits, const nvlist_t *nvlin, nvlist_t *nvlout)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dns_allowed_family(limits, (int)sast.ss_family))
|
if (!dns_allowed_family(limits, (int)sast.ss_family)) {
|
||||||
return (NO_RECOVERY);
|
error = NO_RECOVERY;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
flags = (int)nvlist_get_number(nvlin, "flags");
|
flags = (int)nvlist_get_number(nvlin, "flags");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user