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