diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-01-26 22:29:50 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-03-12 18:58:43 (GMT) |
commit | efc419a6d4448a5806715e967384ea85f880fe59 (patch) | |
tree | a6fc954791fe720a51a2cc3f198cc76dbe458a41 /lib/lz4hc.c | |
parent | 80790c587b55b8e0b932b64c892ba984cde1b70f (diff) | |
download | lz4-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.c | 2 |
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; |