Free new_key_data in case of failure [CID-78]

This commit is contained in:
Love Hornquist Astrand
2009-07-30 12:10:14 +02:00
parent 149edc15f7
commit 60c9bca968

View File

@@ -102,6 +102,7 @@ add_enctype(struct add_enctype_options*opt, int argc, char **argv)
if (etypes[j] == key->key_data_type[0]) {
krb5_warnx(context, "enctype %d already exists",
(int)etypes[j]);
free(new_key_data);
goto out;
}
}