From: Michael Stapelberg Date: Tue, 9 Aug 2011 06:41:14 +0000 (+0200) Subject: Bugfix: use FREE to correctly handle NULL replies X-Git-Tag: 4.0.2~48^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95416175cdf347df6c7ea78c65db7578ad259409;p=i3%2Fi3 Bugfix: use FREE to correctly handle NULL replies --- diff --git a/src/handlers.c b/src/handlers.c index b83ac83d..f19b53c8 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -113,7 +113,7 @@ static int handle_key_press(xcb_key_press_event_t *event) { } char *json_result = parse_cmd(bind->command); - free(json_result); + FREE(json_result); return 1; }