about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--posix/execvp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/execvp.c b/posix/execvp.c
index 9ccfd7fc22..0abfa7007c 100644
--- a/posix/execvp.c
+++ b/posix/execvp.c
@@ -189,7 +189,7 @@ execvp (file, argv)
 	__set_errno (EACCES);
 
       free (script_argv);
-      free (name);
+      free (name - pathlen);
       if (path_malloc)
 	free (path);
     }