svn commit: r282101 - head/libexec/casper/dns
Mariusz Zaborski
oshogbo at FreeBSD.org
Mon Apr 27 17:33:01 UTC 2015
Author: oshogbo
Date: Mon Apr 27 17:33:00 2015
New Revision: 282101
URL: https://svnweb.freebsd.org/changeset/base/282101
Log:
Fix potential memory leak.
Pointed-out by: pfg
Approved by: pjd (mentor)
Modified:
head/libexec/casper/dns/dns.c
Modified: head/libexec/casper/dns/dns.c
==============================================================================
--- head/libexec/casper/dns/dns.c Mon Apr 27 17:23:19 2015 (r282100)
+++ head/libexec/casper/dns/dns.c Mon Apr 27 17:33:00 2015 (r282101)
@@ -228,8 +228,10 @@ dns_getnameinfo(const nvlist_t *limits,
goto out;
}
- if (!dns_allowed_family(limits, (int)sast.ss_family))
- return (NO_RECOVERY);
+ if (!dns_allowed_family(limits, (int)sast.ss_family)) {
+ error = NO_RECOVERY;
+ goto out;
+ }
flags = (int)nvlist_get_number(nvlin, "flags");
More information about the svn-src-head
mailing list