bitlk: Correctly free memory in passphrase_to_utf16

Fixes: #547
This commit is contained in:
Vojtěch Trefný
2020-04-01 07:59:04 +02:00
committed by Vojtech Trefny
parent 5b68dec43a
commit e10724accb

View File

@@ -290,7 +290,7 @@ static int passphrase_to_utf16(struct crypt_device *cd, char *input, size_t inle
*out = outbuf;
} else {
*out = NULL;
free(outbuf);
crypt_safe_free(outbuf);
log_dbg(cd, "Failed to convert passphrase: %s", strerror(errno));
r = -errno;
}