diff options
author | Richard Braun <rbraun@sceen.net> | 2013-10-08 22:22:05 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-10-08 22:22:05 +0200 |
commit | 9ba4ba4394e729560e72148a0e52160faf83893f (patch) | |
tree | 172b4504e36eaa2ed42a1e87213497380bcb880f /exec | |
parent | 98b6f846b628e858acbae9258bac78cf54126d27 (diff) |
Fix memory leak in exec
* exec/hashexec.c (check_hashbang): Unmap command arguments.
Diffstat (limited to 'exec')
-rw-r--r-- | exec/hashexec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/exec/hashexec.c b/exec/hashexec.c index e20a462e..5641218c 100644 --- a/exec/hashexec.c +++ b/exec/hashexec.c @@ -426,6 +426,7 @@ check_hashbang (struct execdata *e, deallocnames, ndeallocnames, destroynames, ndestroynames); mach_port_deallocate (mach_task_self (), interp_file); + munmap (new_argv, new_argvlen); if (! e->error) { |