From: Orestis Date: Thu, 11 Apr 2019 07:29:43 +0000 (+0300) Subject: Merge pull request #3680 from bobnye/next X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a574346964ce17d35df2ef9072ba16e26209ac84;hp=56bbc528d7de68100298c6ba85a6488778f3a64e;p=i3%2Fi3 Merge pull request #3680 from bobnye/next Fix memory leak Fixes #3621 --- diff --git a/libi3/font.c b/libi3/font.c index e16ce85e..32744c0b 100644 --- a/libi3/font.c +++ b/libi3/font.c @@ -436,6 +436,7 @@ static int xcb_query_text_width(const xcb_char2b_t *text, size_t text_len) { * a crash. Plus, the user will see the error in their log. */ fprintf(stderr, "Could not get text extents (X error code %d)\n", error->error_code); + free(error); return savedFont->specific.xcb.info->max_bounds.character_width * text_len; }