From: Mark Andrews Date: Wed, 13 Dec 2017 04:11:22 +0000 (+1100) Subject: test for key != NULL on error path X-Git-Tag: v9.12.1b1~163 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9bad78cbc2f4c8cacb4c4b82d4207fd45ea3d598;p=thirdparty%2Fbind9.git test for key != NULL on error path --- diff --git a/bin/tests/dst/t_dst.c b/bin/tests/dst/t_dst.c index 8547aa44d1e..32595b1fdbf 100644 --- a/bin/tests/dst/t_dst.c +++ b/bin/tests/dst/t_dst.c @@ -381,7 +381,8 @@ io(dns_name_t *name, isc_uint16_t id, isc_uint16_t alg, int type, cleandir(tmp); failure: - dst_key_free(&key); + if (key != NULL) + dst_key_free(&key); } static void