mirror of
https://github.com/i3/i3.git
synced 2026-02-04 09:05:32 +00:00
git bisect:c7344095ecis the first bad commit ```c7344095ec(HEAD) Fix leak sanitizer memleaks (#6520) i3bar/src/ipc.c | 5 +++-- i3bar/src/workspaces.c | 58 +++++++++++++++++++++++++++++++++------------------------- i3bar/src/xcb.c | 1 + include/libi3.h | 10 ++++------ src/config_directives.c | 1 + src/config_parser.c | 85 +++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------ src/load_layout.c | 2 +- src/restore_layout.c | 4 ++++ 8 files changed, 96 insertions(+), 70 deletions(-) ``` To handle race conditions in the test, I tested with: ```diff diff --git a/i3bar/src/workspaces.c b/i3bar/src/workspaces.c index d712750d..0c481d18 100644 --- a/i3bar/src/workspaces.c +++ b/i3bar/src/workspaces.c @@ -286,6 +286,8 @@ void parse_workspaces_json(const unsigned char *json, const size_t size) { } } + sleep(1); + yajl_free(handle); FREE(params.cur_key); } ``` fixes https://github.com/i3/i3/issues/6560