]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: use FREE to correctly handle NULL replies
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 9 Aug 2011 06:41:14 +0000 (08:41 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 9 Aug 2011 07:27:24 +0000 (09:27 +0200)
src/handlers.c

index b83ac83db4311dafd6e96d219d460b934ec475a8..f19b53c8fce793bfda24034a18a8cad74fa9b3a9 100644 (file)
@@ -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;
 }