Skip to content

Commit 4e988e8

Browse files
authoredOct 6, 2020
out_stackdriver: clean up buffer before return (#2640)
Signed-off-by: Yen-Cheng Chou <ycchou@google.com>
1 parent 8d6ff1b commit 4e988e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎plugins/out_stackdriver/stackdriver.c

+1
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,7 @@ static int stackdriver_format(struct flb_config *config,
12751275
ret = extract_local_resource_id(data, bytes, ctx, tag);
12761276
if (ret != 0) {
12771277
flb_plg_error(ctx->ins, "fail to construct local_resource_id");
1278+
msgpack_sbuffer_destroy(&mp_sbuf);
12781279
return -1;
12791280
}
12801281
}

0 commit comments

Comments
 (0)