From fb63e9c020676a3b8b3c24fea3cb96c7b189a1bf Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 3 Feb 2012 12:59:03 +0000 Subject: [PATCH] missing return --- lib/dns/zone.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 60ccec7732..c9f6f8d73c 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.670 2012/02/01 21:28:39 marka Exp $ */ +/* $Id: zone.c,v 1.671 2012/02/03 12:59:03 marka Exp $ */ /*! \file */ @@ -1845,8 +1845,10 @@ zone_registerinclude(const char *filename, void *arg) { if (inc == NULL) return; inc->name = isc_mem_strdup(zone->mctx, filename); - if (inc->name == NULL) + if (inc->name == NULL) { isc_mem_put(zone->mctx, inc, sizeof(dns_include_t)); + return; + } ISC_LINK_INIT(inc, link); ISC_LIST_APPEND(zone->includes, inc, link);