aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lockyer <thisisdaniellockyer@gmail.com>2016-04-29 18:31:21 +0100
committerDaniel Lockyer <thisisdaniellockyer@gmail.com>2016-04-29 18:31:21 +0100
commit06986e58b84170f51c4ae303bedb8d8803ed5ba7 (patch)
treeef0ae24bddb2968549d33615e3d07b04c2645fa6
parent01c2b5f2d658c8992d5351c1ef0e2e23a0729fcd (diff)
sway/config.c: Change to the useful free_cmd_results helper method
-rw-r--r--sway/config.c3
1 files changed, 1 insertions, 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;