mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 01:50:01 -04:00
freeing null pointers is bad
This commit is contained in:
parent
3030ea490c
commit
ed6d98bffe
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: confparser.y.dirty,v 1.18 2000/10/04 18:47:24 bwelling Exp $ */
|
||||
/* $Id: confparser.y.dirty,v 1.19 2000/10/09 18:20:18 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -6022,7 +6022,7 @@ dns_c_parse_namedconf(const char *filename, isc_mem_t *mem,
|
|||
if (res != ISC_R_SUCCESS) {
|
||||
dns_c_ctx_delete(&currcfg);
|
||||
}
|
||||
} else
|
||||
} else if (currcfg != NULL)
|
||||
dns_c_ctx_delete(&currcfg);
|
||||
|
||||
*configctx = currcfg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue