From 58c808a961abd6408d37740138e3043eb8438d99 Mon Sep 17 00:00:00 2001 From: Jeremy Klotz Date: Wed, 10 Apr 2019 19:56:30 -0400 Subject: [PATCH] Fix memory leak --- libi3/font.c | 1 + 1 file changed, 1 insertion(+) 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; }