linkat, renameat: avoid bad free
authorPetr Salinger <Petr.Salinger@seznam.cz>
Thu, 7 Jan 2010 01:59:29 +0000 (18:59 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 7 Jan 2010 01:59:29 +0000 (18:59 -0700)
* lib/at-func2.c (at_func2): Fix typo.
Reported via Ian Beckwith, from http://bugs.debian.org/561117.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/at-func2.c

index 93e1132..88ac6af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (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  <Ralf.Wildenhues@gmx.de>
 
        cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
index 078d79b..f19d2ed 100644 (file)
@@ -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);
       }
   }