diff --git a/plugins/out_stackdriver/stackdriver.c b/plugins/out_stackdriver/stackdriver.c index 5fc859ea088..16cf8098dd8 100644 --- a/plugins/out_stackdriver/stackdriver.c +++ b/plugins/out_stackdriver/stackdriver.c @@ -1275,6 +1275,7 @@ static int stackdriver_format(struct flb_config *config, ret = extract_local_resource_id(data, bytes, ctx, tag); if (ret != 0) { flb_plg_error(ctx->ins, "fail to construct local_resource_id"); + msgpack_sbuffer_destroy(&mp_sbuf); return -1; } }