aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cfg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg.c b/cfg.c
index 6320641e..75390165 100644
--- a/cfg.c
+++ b/cfg.c
@@ -112,6 +112,8 @@ load_cfg(const char *path, char **cause)
return (0);
error:
+ if (line != NULL)
+ xfree(line);
fclose(f);
xasprintf(&ptr, "%s: %s at line %u", path, *cause, n);