diff options
author | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2016-04-29 18:31:21 +0100 |
---|---|---|
committer | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2016-04-29 18:31:21 +0100 |
commit | 06986e58b84170f51c4ae303bedb8d8803ed5ba7 (patch) | |
tree | ef0ae24bddb2968549d33615e3d07b04c2645fa6 | |
parent | sway/config.c: move free call to after sway_log (diff) | |
download | sway-06986e58b84170f51c4ae303bedb8d8803ed5ba7.tar.gz sway-06986e58b84170f51c4ae303bedb8d8803ed5ba7.tar.zst sway-06986e58b84170f51c4ae303bedb8d8803ed5ba7.zip |
sway/config.c: Change to the useful free_cmd_results helper method
-rw-r--r-- | sway/config.c | 3 |
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) { | |||
536 | default:; | 536 | default:; |
537 | } | 537 | } |
538 | free(line); | 538 | free(line); |
539 | free(res->input); | 539 | free_cmd_results(res); |
540 | free(res); | ||
541 | } | 540 | } |
542 | 541 | ||
543 | return success; | 542 | return success; |