Fix data leak in format and reencrypt command.

This commit is contained in:
Milan Broz
2019-05-03 13:06:58 +02:00
parent b3e90a93b0
commit dc53261c3b

View File

@@ -1226,11 +1226,12 @@ out:
*r_cd = cd;
*r_password = password;
*r_passwordLen = passwordLen;
return 0;
}
} else {
crypt_free(cd);
crypt_safe_free(key);
crypt_safe_free(password);
}
crypt_safe_free(key);
return r;
}