We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d40643 commit 54f1c6fCopy full SHA for 54f1c6f
1 file changed
src/flb_storage.c
@@ -284,8 +284,12 @@ void flb_storage_destroy(struct flb_config *ctx)
284
285
/* Destroy Chunk I/O context */
286
cio = (struct cio_ctx *) ctx->cio;
287
- cio_destroy(cio);
288
+ if (!cio) {
289
+ return;
290
+ }
291
+
292
+ cio_destroy(cio);
293
if (ctx->storage_bl_mem_limit) {
294
flb_free(ctx->storage_bl_mem_limit);
295
}
0 commit comments