]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-02-22 Andreas Schwab <schwab@suse.de>
authorRoland McGrath <roland@gnu.org>
Sat, 26 Feb 2005 01:02:17 +0000 (01:02 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 26 Feb 2005 01:02:17 +0000 (01:02 +0000)
* posix/execvp.c (execvp): Fix invalid free.

posix/execvp.c

index a79d4a89c58e63bf1e6423ea6b76a943908d9647..9809769701e75376fb749ccebdaf899254bbd076 100644 (file)
@@ -189,7 +189,7 @@ execvp (file, argv)
        __set_errno (EACCES);
 
       free (script_argv);
-      free (name);
+      free (name - pathlen);
       if (path_malloc)
        free (path);
     }