Skip to content

Commit 312f8e9

Browse files
committed
engine: compare explicitly against NULL before deallocationg config context loop.
Signed-off-by: Phillip Adair Stewart Whelan <phillip.whelan@chronosphere.io>
1 parent 68d38b7 commit 312f8e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/flb_engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ int flb_engine_shutdown(struct flb_config *config)
12111211
flb_hs_destroy(config->http_ctx);
12121212
}
12131213
#endif
1214-
if (config->ctx_evl) {
1214+
if (config->ctx_evl != NULL) {
12151215
mk_event_channel_destroy(config->ctx_evl,
12161216
config->ch_context_signal[0],
12171217
config->ch_context_signal[1],

0 commit comments

Comments
 (0)