Skip to content

Commit

Permalink
debug leak
Browse files Browse the repository at this point in the history
  • Loading branch information
AdheipSingh committed Dec 4, 2024
1 parent 8eb06e2 commit 3614483
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions plugins/out_parseable/parseable.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ static void cb_parseable_flush(struct flb_event_chunk *event_chunk,
FLB_OUTPUT_RETURN(FLB_ERROR);
}

/* Check if the namespace is excluded */
if (is_namespace_excluded(ctx, namespace_name)) {
flb_plg_info(ctx->ins, "Skipping HTTP request for excluded namespace: %s", namespace_name);
flb_sds_destroy(namespace_name);
flb_sds_destroy(body);
msgpack_sbuffer_destroy(&sbuf);
continue; // Skip sending the HTTP request
}
// /* Check if the namespace is excluded */
// if (is_namespace_excluded(ctx, namespace_name)) {
// flb_plg_info(ctx->ins, "Skipping HTTP request for excluded namespace: %s", namespace_name);
// flb_sds_destroy(namespace_name);
// flb_sds_destroy(body);
// msgpack_sbuffer_destroy(&sbuf);
// continue; // Skip sending the HTTP request
// }


/* Determine the value of the X-P-Stream header */
Expand Down Expand Up @@ -239,6 +239,7 @@ static int cb_parseable_exit(void *data, struct flb_config *config)
return 0;
}

flb_slist_destroy(&ctx->exclude_namespaces);
/* Free up resources */
if (ctx->upstream) {
flb_upstream_destroy(ctx->upstream);
Expand Down

0 comments on commit 3614483

Please sign in to comment.