commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 03/26: Fix memory leak in exec


From: Samuel Thibault
Subject: [hurd] 03/26: Fix memory leak in exec
Date: Sat, 02 Nov 2013 14:44:43 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 9ba4ba4394e729560e72148a0e52160faf83893f
Author: Richard Braun <address@hidden>
Date:   Tue Oct 8 22:22:05 2013 +0200

    Fix memory leak in exec
    
    * exec/hashexec.c (check_hashbang): Unmap command arguments.
---
 exec/hashexec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/exec/hashexec.c b/exec/hashexec.c
index e20a462..5641218 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)
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]