diff --git a/sway/config.c b/sway/config.c index 9ce73ceb..82215ba5 100644 --- a/sway/config.c +++ b/sway/config.c @@ -536,8 +536,7 @@ bool read_config(FILE *file, struct sway_config *config) { default:; } free(line); - free(res->input); - free(res); + free_cmd_results(res); } return success;