Memory leaks, from Igor Wong in GitHub issue 1934.

This commit is contained in:
nicm
2019-10-14 08:38:07 +00:00
parent 4e2cc0ae2a
commit 68d59a16ce
3 changed files with 3 additions and 0 deletions

View File

@ -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);