Module: wine Branch: master Commit: 36cf952664ea1c8e6bc0933180c346e47b51abf6 URL: https://gitlab.winehq.org/wine/wine/-/commit/36cf952664ea1c8e6bc0933180c346e...
Author: Alex Henrie alexhenrie24@gmail.com Date: Thu Jun 1 23:02:53 2023 -0600
bcrypt/tests: Don't allocate inside todo_wine and free outside of it.
Fixes a warning on GCC 13.
---
dlls/bcrypt/tests/bcrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/bcrypt/tests/bcrypt.c b/dlls/bcrypt/tests/bcrypt.c index 19518480ee0..4d7277c3152 100644 --- a/dlls/bcrypt/tests/bcrypt.c +++ b/dlls/bcrypt/tests/bcrypt.c @@ -2492,8 +2492,8 @@ static void test_rsa_encrypt(void) decrypted = malloc(decrypted_size); BCryptDecrypt(key, encrypted_a, encrypted_size, &oaep_pad, NULL, 0, decrypted, decrypted_size, &decrypted_size, BCRYPT_PAD_OAEP); ok(!memcmp(decrypted, input, sizeof(input)), "Decrypted output it's not what expected\n"); - } free(decrypted); + }
free(encrypted_a); free(encrypted_b);