1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

x: fix leak in x_create_picture_with_pictfmt_and_pixmap

This commit is contained in:
Maxim Solovyov 2022-12-21 23:19:51 +03:00
parent fdecbb98f8
commit df7b994d00

View file

@ -299,6 +299,7 @@ x_create_picture_with_pictfmt_and_pixmap(xcb_connection_t *c,
free(buf); free(buf);
if (e) { if (e) {
log_error_x_error(e, "failed to create picture"); log_error_x_error(e, "failed to create picture");
free(e);
return XCB_NONE; return XCB_NONE;
} }
return tmp_picture; return tmp_picture;