Skip to content
Snippets Groups Projects
Commit 4b10229d authored by BenceJanosSzabo's avatar BenceJanosSzabo
Browse files

Corrected invalid frees in makefilegen


Change-Id: I4dc7d3a67b76ffda37339c82d271306d7f64a71f
Signed-off-by: default avatarBenceJanosSzabo <bence.janos.szabo@ericsson.com>
parent 0f232025
No related branches found
No related tags found
No related merge requests found
...@@ -1345,6 +1345,9 @@ extern "C" tpd_result process_tpd(const char *p_tpd_name, const char *actcfg, ...@@ -1345,6 +1345,9 @@ extern "C" tpd_result process_tpd(const char *p_tpd_name, const char *actcfg,
p_Hflag, generatorCommandOutput, target_placement_list, prefix_workdir, p_Hflag, generatorCommandOutput, target_placement_list, prefix_workdir,
run_command_list, seen_tpd_files, required_configs, profiled_file_list, run_command_list, seen_tpd_files, required_configs, profiled_file_list,
search_paths, n_search_paths, makefileScript, all_configs); search_paths, n_search_paths, makefileScript, all_configs);
} else {
free_config_struct(all_configs);
all_configs = NULL;
} }
if (TPD_FAILED == success){ if (TPD_FAILED == success){
goto failure; goto failure;
...@@ -1387,17 +1390,18 @@ failure: ...@@ -1387,17 +1390,18 @@ failure:
free_string_list(*profiled_file_list); free_string_list(*profiled_file_list);
Free(search_paths); Free(search_paths);
Free(*generatorCommandOutput);
Free(generatorCommandOutput); free_string2_list(create_symlink_list);
free_string2_list(target_placement_list); free_string2_list(target_placement_list);
free_string2_list(required_configs); free_string2_list(required_configs);
Free(makefileScript); Free(*makefileScript);
Free(*p_project_name);
Free(p_ets_name);
Free(cxxcompiler); Free(*p_ets_name);
Free(optlevel); Free(*cxxcompiler);
Free(optflags); Free(*optlevel);
Free(ttcn3prep); Free(*optflags);
Free(*ttcn3prep);
for (int E = 0; E < *p_argc; ++E) Free((*p_argv)[E]); for (int E = 0; E < *p_argc; ++E) Free((*p_argv)[E]);
Free(*p_argv); Free(*p_argv);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment