Commit 7b246524 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

msasn1: Use CRT allocation functions.

parent 02634d83
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment