summaryrefslogtreecommitdiffstats
path: root/cmd-parse.y
diff options
context:
space:
mode:
authornicm <nicm>2019-10-14 08:38:07 +0000
committernicm <nicm>2019-10-14 08:38:07 +0000
commit68d59a16cec91d2c2747c8c2862560e89f8f2d31 (patch)
treeac11b38e92612f09782f043d0fd1e010dd308a62 /cmd-parse.y
parent4e2cc0ae2a518371d1411bc327f113fc4898954c (diff)
Memory leaks, from Igor Wong in GitHub issue 1934.
Diffstat (limited to 'cmd-parse.y')
-rw-r--r--cmd-parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-parse.y b/cmd-parse.y
index 0cd7c6bf..2c924010 100644
--- a/cmd-parse.y
+++ b/cmd-parse.y
@@ -696,6 +696,7 @@ cmd_parse_build_commands(struct cmd_parse_commands *cmds,
pr.status = CMD_PARSE_ERROR;
pr.error = cmd_parse_get_error(pi->file, line, cause);
free(cause);
+ cmd_list_free(cmdlist);
goto out;
}
cmd_list_append(cmdlist, add);