aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/opendeco-conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/opendeco-conf.c')
-rw-r--r--src/opendeco-conf.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/opendeco-conf.c b/src/opendeco-conf.c
index d385bb0..e19440b 100644
--- a/src/opendeco-conf.c
+++ b/src/opendeco-conf.c
@@ -35,9 +35,7 @@ int opendeco_conf_parse(const char *confpath, struct arguments *arguments)
toml_datum_t g = toml_string_in(dive, "gas");
if (g.ok) {
- if (arguments->gas)
- free(arguments->gas);
-
+ free(arguments->gas);
arguments->gas = g.u.s;
}
@@ -73,9 +71,7 @@ int opendeco_conf_parse(const char *confpath, struct arguments *arguments)
toml_datum_t G = toml_string_in(deco, "decogasses");
if (G.ok) {
- if (arguments->decogasses)
- free(arguments->decogasses);
-
+ free(arguments->decogasses);
arguments->decogasses = G.u.s;
}