Brendan Shanks : crypt32/tests: Fix mismatched deallocation function.

Alexandre Julliard julliard at winehq.org
Wed May 18 15:38:31 CDT 2022


Module: wine
Branch: master
Commit: 65954db2be6495356b56d504b1fadacf3fe9c740
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=65954db2be6495356b56d504b1fadacf3fe9c740

Author: Brendan Shanks <bshanks at codeweavers.com>
Date:   Fri Apr 29 09:04:41 2022 -0700

crypt32/tests: Fix mismatched deallocation function.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/crypt32/tests/encode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index 9dabe58efba..b65ffde3a84 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -2603,7 +2603,7 @@ static void test_decodeRsaPublicKey_Bcrypt(DWORD dwEncoding)
              rsaPubKeys[i].modulus, rsaPubKeys[i].decodedModulusLen),
              "Unexpected modulus\n");
             LocalFree(buf);
-            LocalFree(leModulus);
+            HeapFree(GetProcessHeap(), 0, leModulus);
         }
     }
 }




More information about the wine-cvs mailing list