aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-11-26 12:37:45 +0200
committerArnold D. Robbins <arnold@skeeve.com>2010-11-26 12:37:45 +0200
commit28436897d3289b4fe1b7e84e63c9cffecfcb17f6 (patch)
tree15b68beb5212a1791cb0eb5af633247e54e779e4 /main.c
parent286748e1a8500f647c3bccfb467b02bf3a37f398 (diff)
downloadegawk-28436897d3289b4fe1b7e84e63c9cffecfcb17f6.tar.gz
egawk-28436897d3289b4fe1b7e84e63c9cffecfcb17f6.tar.bz2
egawk-28436897d3289b4fe1b7e84e63c9cffecfcb17f6.zip
Fix memory leaks - patch from John.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 312cb6be..279d91c3 100644
--- a/main.c
+++ b/main.c
@@ -334,8 +334,8 @@ main(int argc, char **argv)
/* copy argv before getopt gets to it; used to restart debugger */
save_argv(argc, argv);
- /* initialize context */
- (void) new_context();
+ /* initialize global (main) execution context */
+ push_context(new_context());
/* option processing. ready, set, go! */
for (optopt = 0, old_optind = 1;