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
1 changed files with 1 additions and 0 deletions

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;