CID 331477: Resource leaks (RESOURCE_LEAK)
This seems to be a result of fa05c1b8:
*** CID 331477: Resource leaks (RESOURCE_LEAK)
/lib/dns/dst_api.c: 653 in dst_key_fromnamedfile()
647 return (ISC_R_SUCCESS);
648 }
649
650 result = algorithm_status(pubkey->key_alg);
651 if (result != ISC_R_SUCCESS) {
652 dst_key_free(&pubkey);
>>> CID 331477: Resource leaks (RESOURCE_LEAK)
>>> Variable "statefilename" going out of scope leaks the storage it points to.
653 return (result);
654 }
655
656 key = get_key_struct(pubkey->key_name, pubkey->key_alg,
657 pubkey->key_flags, pubkey->key_proto,
658 pubkey->key_size, pubkey->key_class,