Fix memory leak in luksKillSlot action.

This commit is contained in:
Ondrej Kozina
2018-04-26 16:39:39 +02:00
parent a387557970
commit abcd3511bf

View File

@@ -1212,7 +1212,8 @@ static int action_luksKillSlot(void)
log_err(_("Keyslot %d is not active."), opt_key_slot); log_err(_("Keyslot %d is not active."), opt_key_slot);
/* fall through */ /* fall through */
case CRYPT_SLOT_INVALID: case CRYPT_SLOT_INVALID:
return -EINVAL; r = -EINVAL;
goto out;
} }
if (!opt_batch_mode || opt_key_file || !isatty(STDIN_FILENO)) { if (!opt_batch_mode || opt_key_file || !isatty(STDIN_FILENO)) {