2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

2216. [cleanup] Fix a number of errors reported by Coverity.

[RT #17094]
This commit is contained in:
Mark Andrews
2007-08-27 03:32:27 +00:00
parent c60eaaf9b3
commit 557bcc2092
10 changed files with 39 additions and 24 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: master.c,v 1.165 2007/06/18 23:47:40 tbox Exp $ */
/* $Id: master.c,v 1.166 2007/08/27 03:32:26 marka Exp $ */
/*! \file */
@@ -2349,8 +2349,7 @@ dns_master_loadfile2(const char *master_file, dns_name_t *top,
INSIST(result != DNS_R_CONTINUE);
cleanup:
if (lctx != NULL)
dns_loadctx_detach(&lctx);
dns_loadctx_detach(&lctx);
return (result);
}
@@ -2397,8 +2396,7 @@ dns_master_loadfileinc2(const char *master_file, dns_name_t *top,
}
cleanup:
if (lctx != NULL)
dns_loadctx_detach(&lctx);
dns_loadctx_detach(&lctx);
return (result);
}
@@ -2492,8 +2490,7 @@ dns_master_loadbuffer(isc_buffer_t *buffer, dns_name_t *top,
INSIST(result != DNS_R_CONTINUE);
cleanup:
if (lctx != NULL)
dns_loadctx_detach(&lctx);
dns_loadctx_detach(&lctx);
return (result);
}
@@ -2529,8 +2526,7 @@ dns_master_loadbufferinc(isc_buffer_t *buffer, dns_name_t *top,
}
cleanup:
if (lctx != NULL)
dns_loadctx_detach(&lctx);
dns_loadctx_detach(&lctx);
return (result);
}