From: Jeremy Klotz Date: Wed, 10 Apr 2019 23:56:30 +0000 (-0400) Subject: Fix memory leak X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58c808a961abd6408d37740138e3043eb8438d99;hp=56bbc528d7de68100298c6ba85a6488778f3a64e;p=i3%2Fi3 Fix memory leak --- 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; }