diff --git a/src/bin/lz4/lz4.c b/src/bin/lz4/lz4.c index 73f1d955..b3062f04 100644 --- a/src/bin/lz4/lz4.c +++ b/src/bin/lz4/lz4.c @@ -1078,6 +1078,7 @@ typedef struct void* LZ4_createStreamDecode() { void* lz4s = ALLOCATOR(sizeof(U32), LZ4_STREAMDECODESIZE_U32); + if (!lz4s) return NULL; MEM_INIT(lz4s, 0, LZ4_STREAMDECODESIZE); return lz4s; }