summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.c
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-01-26 22:29:50 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-03-12 18:58:43 (GMT)
commitefc419a6d4448a5806715e967384ea85f880fe59 (patch)
treea6fc954791fe720a51a2cc3f198cc76dbe458a41 /lib/lz4hc.c
parent80790c587b55b8e0b932b64c892ba984cde1b70f (diff)
downloadlz4-efc419a6d4448a5806715e967384ea85f880fe59.zip
lz4-efc419a6d4448a5806715e967384ea85f880fe59.tar.gz
lz4-efc419a6d4448a5806715e967384ea85f880fe59.tar.bz2
Replace calloc() Calls With malloc() Where Possible
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r--lib/lz4hc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 2a6e080..0c1b20a 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -858,7 +858,7 @@ int LZ4_resetStreamStateHC(void* state, char* inputBuffer)
void* LZ4_createHC (char* inputBuffer)
{
- LZ4_streamHC_t* hc4 = (LZ4_streamHC_t*)ALLOCATOR(1, sizeof(LZ4_streamHC_t));
+ LZ4_streamHC_t* hc4 = (LZ4_streamHC_t*)ALLOC(sizeof(LZ4_streamHC_t));
if (hc4 == NULL) return NULL; /* not enough memory */
LZ4HC_init (&hc4->internal_donotuse, (const BYTE*)inputBuffer);
hc4->internal_donotuse.inputBuffer = (BYTE*)inputBuffer;