From: Roland McGrath Date: Sat, 26 Feb 2005 01:02:17 +0000 (+0000) Subject: 2005-02-22 Andreas Schwab X-Git-Tag: cvs/glibc-2_3_5~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9c114239e717527a2c0bfaa21c3c7790f377200;p=thirdparty%2Fglibc.git 2005-02-22 Andreas Schwab * posix/execvp.c (execvp): Fix invalid free. --- diff --git a/posix/execvp.c b/posix/execvp.c index a79d4a89c58..9809769701e 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); }