From 06986e58b84170f51c4ae303bedb8d8803ed5ba7 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 29 Apr 2016 18:31:21 +0100 Subject: [PATCH] sway/config.c: Change to the useful free_cmd_results helper method --- sway/config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;