(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 9ccfd7f..0abfa70 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);
     }