From e5697c685644390cb2ec3f753a5547b73128f6b4 Mon Sep 17 00:00:00 2001 From: Petr Salinger Date: Wed, 6 Jan 2010 18:59:29 -0700 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ lib/at-func2.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); } } -- 2.11.0