Skip to content

Commit 5b4d064

Browse files
cosmo0920edsiper
authored andcommitted
signv4: Plug lack of freeing memory on exceptions
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent 3fb79e6 commit 5b4d064

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/flb_signv4.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ static flb_sds_t url_params_format(char *params)
447447
}
448448
if (!tmp) {
449449
flb_error("[signv4] error allocating value");
450+
flb_sds_destroy(buf);
451+
flb_kv_release(&list);
452+
flb_free(arr);
453+
return NULL;
450454
}
451455
buf = tmp;
452456
}

0 commit comments

Comments
 (0)