Skip to content

Commit 93d0bbc

Browse files
committed
decode_prometheus_remote_write: release context on excepion (CID 507716)
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 242d940 commit 93d0bbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmt_decode_prometheus_remote_write.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ int cmt_decode_prometheus_remote_write_create(struct cmt **out_cmt, char *in_buf
663663
(uint8_t *) in_buf);
664664
if (write == NULL) {
665665
result = CMT_DECODE_PROMETHEUS_REMOTE_WRITE_UNPACK_ERROR;
666+
cmt_destroy(cmt);
666667
return result;
667668
}
668669

0 commit comments

Comments
 (0)