summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-02-22 15:36:13 +0000
committerUlrich Drepper <drepper@redhat.com>2005-02-22 15:36:13 +0000
commit79164473b2c98cd5f8498797e69a09817d70b115 (patch)
tree1175c88a491fb66a67d1d9fc87e01e0dbc187603 /posix
parent8b3d4e0b045cdd07bbd7f308530caac00b2a90a1 (diff)
downloadglibc-79164473b2c98cd5f8498797e69a09817d70b115.tar.gz
glibc-79164473b2c98cd5f8498797e69a09817d70b115.tar.xz
glibc-79164473b2c98cd5f8498797e69a09817d70b115.zip
(execvp): Fix invalid free.
Diffstat (limited to 'posix')
-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);
     }