sc-hsm-tool.c: fixed potential resource leak

This commit is contained in:
Frank Morgner 2015-11-01 10:44:24 +01:00
parent 4ca7daf31c
commit a34d1f7dcd
1 changed files with 1 additions and 0 deletions

View File

@ -665,6 +665,7 @@ static int recreate_password_from_shares(char **pwd, int *pwdlen, int num_of_pas
memset(inbuf, 0, sizeof(inbuf));
if (fgets(inbuf, sizeof(inbuf), stdin) == NULL) {
fprintf(stderr, "Input aborted\n");
free(shares);
return -1;
}
binlen = 64;