msasn1: Use CRT allocation functions.

This commit is contained in:
Alex Henrie 2023-11-02 21:37:22 -06:00 committed by Alexandre Julliard
parent 02634d8351
commit 7b246524cf

View file

@ -24,7 +24,6 @@
#include "winbase.h"
#include "msasn1.h"
#include "wine/heap.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(msasn1);
@ -41,7 +40,7 @@ ASN1module_t WINAPI ASN1_CreateModule(ASN1uint32_t ver, ASN1encodingrule_e rule,
if (!encoder || !decoder || !freemem || !size)
return module;
module = heap_alloc(sizeof(*module));
module = malloc(sizeof(*module));
if (module)
{
module->nModuleName = magic;
@ -75,7 +74,7 @@ void WINAPI ASN1_CloseModule(ASN1module_t module)
{
TRACE("(%p)\n", module);
heap_free(module);
free(module);
}
ASN1error_e WINAPI ASN1_CreateEncoder(ASN1module_t module, ASN1encoding_t *encoder, ASN1octet_t *buf,
@ -88,7 +87,7 @@ ASN1error_e WINAPI ASN1_CreateEncoder(ASN1module_t module, ASN1encoding_t *encod
if (!module || !encoder)
return ASN1_ERR_BADARGS;
enc = heap_alloc(sizeof(*enc));
enc = malloc(sizeof(*enc));
if (!enc)
{
return ASN1_ERR_MEMORY;
@ -138,7 +137,7 @@ ASN1error_e WINAPI ASN1_CreateDecoder(ASN1module_t module, ASN1decoding_t *decod
if (!module || !decoder)
return ASN1_ERR_BADARGS;
dec = heap_alloc(sizeof(*dec));
dec = malloc(sizeof(*dec));
if (!dec)
{
return ASN1_ERR_MEMORY;