From: Mark Karpilovskij Date: Mon, 29 Oct 2018 15:56:52 +0000 (+0100) Subject: fixup: fix a small leak X-Git-Tag: v2.8.0~183^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e141a6ebd5ea6d01f2c325330cfd2a2f20817db;p=thirdparty%2Fknot-dns.git fixup: fix a small leak --- diff --git a/src/utils/keymgr/offline_ksk.c b/src/utils/keymgr/offline_ksk.c index 649acb0ce9..8a23dc017c 100644 --- a/src/utils/keymgr/offline_ksk.c +++ b/src/utils/keymgr/offline_ksk.c @@ -52,6 +52,7 @@ static int load_dnskey_rrset(kdnssec_ctx_t *ctx, knot_rrset_t **_dnskey, zone_ke if (dnskey == NULL) { return KNOT_ENOMEM; } + *_dnskey = dnskey; int ret = load_zone_keys(ctx, keyset, false); if (ret != KNOT_EOK) { @@ -70,7 +71,6 @@ static int load_dnskey_rrset(kdnssec_ctx_t *ctx, knot_rrset_t **_dnskey, zone_ke } } - *_dnskey = dnskey; return KNOT_EOK; }