]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(execvp): Fix invalid free.
authorUlrich Drepper <drepper@redhat.com>
Tue, 22 Feb 2005 15:36:13 +0000 (15:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 22 Feb 2005 15:36:13 +0000 (15:36 +0000)
posix/execvp.c

index 9ccfd7fc22ca934d95d4dbc57ad4ea34ffc54864..0abfa7007cce39729024482becfdb604729af41a 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);
     }