From df7b994d0033f891cba39a5214a2a1bf22a1ac2b Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Wed, 21 Dec 2022 23:19:51 +0300 Subject: [PATCH] x: fix leak in x_create_picture_with_pictfmt_and_pixmap --- src/x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x.c b/src/x.c index 42bee3fc..d00c9c2f 100644 --- a/src/x.c +++ b/src/x.c @@ -299,6 +299,7 @@ x_create_picture_with_pictfmt_and_pixmap(xcb_connection_t *c, free(buf); if (e) { log_error_x_error(e, "failed to create picture"); + free(e); return XCB_NONE; } return tmp_picture;