|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86304 - trunk/boost/interprocess/detail
From: igaztanaga_at_[hidden]
Date: 2013-10-14 15:50:13
Author: igaztanaga
Date: 2013-10-14 15:50:13 EDT (Mon, 14 Oct 2013)
New Revision: 86304
URL: http://svn.boost.org/trac/boost/changeset/86304
Log:
Fixes #9248 ("os_file_functions.hpp: delete_subdirectories_recursive Win32 HANDLE leak")
Text files modified:
trunk/boost/interprocess/detail/os_file_functions.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/interprocess/detail/os_file_functions.hpp
==============================================================================
--- trunk/boost/interprocess/detail/os_file_functions.hpp Mon Oct 14 13:38:04 2013 (r86303)
+++ trunk/boost/interprocess/detail/os_file_functions.hpp 2013-10-14 15:50:13 EDT (Mon, 14 Oct 2013) (r86304)
@@ -273,8 +273,10 @@
//If it's a directory, go recursive
if(FileInformation.dwFileAttributes & winapi::file_attribute_directory){
// Delete subdirectory
- if(!delete_subdirectories_recursive(strFilePath, dont_delete_this, count+1))
+ if(!delete_subdirectories_recursive(strFilePath, dont_delete_this, count+1)){
+ winapi::find_close(hFile);
return false;
+ }
}
//If it's a file, just delete it
else{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk