ktutil: Fix leak

This commit is contained in:
Nicolas Williams
2022-12-31 00:50:27 -06:00
parent 82475cbf8e
commit 914cd2f31c
2 changed files with 3 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ parse_enctypes(struct get_options *opt,
free(s);
return krb5_enomem(context);
}
free(s);
s = tmp;
}
ret = krb5_string_to_keysalts2(context, s, nks, ks);