englebass pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=cd63abe7e0988b8e96d1f00ea284cd6f9711bee9
commit cd63abe7e0988b8e96d1f00ea284cd6f9711bee9 Author: Sebastian Dransfeld <[email protected]> Date: Thu Jul 10 10:04:23 2014 +0200 free forked config on error If an error happens during main, the forked config isn't free'd. So if the config exists at end, free it. CID 1100644 --- src/bin/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/main.c b/src/bin/main.c index 90a7bf3..ccc7084 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -2813,7 +2813,7 @@ elm_main(int argc, char **argv) }; Win *wn; Term *term; - Config *config; + Config *config = NULL; Split *sp; int args, retval = EXIT_SUCCESS; int remote_try = 0; @@ -3178,6 +3178,11 @@ remote: #if (ECORE_VERSION_MAJOR > 1) || (ECORE_VERSION_MINOR >= 8) free(cmd); #endif + if (config) + { + config_del(config); + config = NULL; + } ipc_shutdown(); --
