sc-hsm-tool.c: fixed potential resource leak
This commit is contained in:
parent
4ca7daf31c
commit
a34d1f7dcd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue