From: Petr Salinger Date: Thu, 7 Jan 2010 01:59:29 +0000 (-0700) Subject: linkat, renameat: avoid bad free X-Git-Tag: v0.1~4900 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=e5697c685644390cb2ec3f753a5547b73128f6b4;p=gnulib.git linkat, renameat: avoid bad free * lib/at-func2.c (at_func2): Fix typo. Reported via Ian Beckwith, from http://bugs.debian.org/561117. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 93e113291..88ac6af7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-06 Petr Salinger (tiny change) + + linkat, renameat: avoid bad free + * lib/at-func2.c (at_func2): Fix typo. + Reported via Ian Beckwith, from http://bugs.debian.org/561117. + 2010-01-06 Ralf Wildenhues cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test diff --git a/lib/at-func2.c b/lib/at-func2.c index 078d79bfb..f19d2ed47 100644 --- a/lib/at-func2.c +++ b/lib/at-func2.c @@ -110,7 +110,7 @@ at_func2 (int fd1, char const *file1, } } else if (proc_file1 != proc_buf1 && proc_file1 != file1) - free (proc_buf1); + free (proc_file1); } }