Round #3 of scan-build warnings cleanup

This commit is contained in:
Nicolas Williams
2016-11-16 23:27:27 -06:00
parent 1c81ddf4e2
commit 7fa85e6d6d
10 changed files with 32 additions and 16 deletions

View File

@@ -126,7 +126,8 @@ kadm5_c_randkey_principal(void *server_handle,
if (n_keys && new_keys) {
*n_keys = tmp;
*new_keys = k;
}
} else
free(k);
}
out:
krb5_storage_free(sp);