Skip to content

Commit fe55e04

Browse files
committed
zstd: Return if calloc is failed for zstd decompression contexts
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 7c09c6f commit fe55e04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flb_zstd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ void *flb_zstd_decompression_context_create(void)
240240

241241
if (context == NULL) {
242242
flb_errno();
243+
return NULL;
243244
}
244245

245246
context->dctx = ZSTD_createDCtx();

0 commit comments

Comments
 (0)