]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
lib/file: memory leak in File_WalkDirectoryNext
authorOliver Kurth <okurth@vmware.com>
Thu, 13 Feb 2020 00:49:09 +0000 (16:49 -0800)
committerOliver Kurth <okurth@vmware.com>
Thu, 13 Feb 2020 00:49:09 +0000 (16:49 -0800)
commit6310fb3128bb347bcff49af65a5bee315eb1ccc3
tree01076813ba458828f85db39e26b2aa79ddee7985
parente267e923ab6952f56ffbfc96c51791f8c86b432d
lib/file: memory leak in File_WalkDirectoryNext

During a sequence of POSIX readdir calls it is possible for a directory
to be rearranged and a file that was previously reported may be found
again.  The code that protects the caller from seeing this isn't freeing
the file name string if a duplicate is discovered.  Fix this.
open-vm-tools/lib/file/filePosix.c