Skip to content

Commit

Permalink
record_accessor: Plug a resource leak on exception (CID 508119)
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
  • Loading branch information
cosmo0920 authored and edsiper committed Sep 1, 2024
1 parent 193448a commit 78152e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flb_record_accessor.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ flb_sds_t flb_ra_create_str_from_list(struct flb_sds_list *str_list)
strs = flb_sds_list_create_str_array(str_list);
if (strs == NULL) {
flb_error("%s flb_sds_list_create_str_array failed", __FUNCTION__);
flb_sds_destroy(str);
return NULL;
}

Expand Down

0 comments on commit 78152e4

Please sign in to comment.