From: Ulrich Drepper Date: Tue, 22 Feb 2005 15:36:13 +0000 (+0000) Subject: (execvp): Fix invalid free. X-Git-Tag: upstream/2.30~16872 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79164473b2c98cd5f8498797e69a09817d70b115;p=external%2Fglibc.git (execvp): Fix invalid free. --- diff --git a/posix/execvp.c b/posix/execvp.c index 9ccfd7f..0abfa70 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); }