diff --git a/modules/i3.c b/modules/i3.c index 8f2420b..df642b9 100644 --- a/modules/i3.c +++ b/modules/i3.c @@ -395,6 +395,7 @@ handle_window_event(int type, const struct json_object *json, void *_mod) assert(bytes >= 0); application[bytes - 1] = '\0'; + free(ws->window.application); ws->window.application = strdup(application); close(fd); }