filesystem::current_path() memory leak?

After a few hour searching for a memory leak, the cause seems to be related to the following line: boost::filesystem::path full_path( boost::filesystem2::current_path() ); or boost::filesystem2::current_path(); I'm loading the boost filesystem library as a dynamically linked library ( boost_filesystem-vc100-mt-gd-1_44.dll ) in a MFC application using VC++ 2010. I'm calling the current_path function during the application's InitInstance method. I'm a little clueless about the cause of the memory leak, so any suggestions would be helpful. I doubt the the memory dump will be useful, but here it is: Detected memory leaks! Dumping objects -> {285} normal block at 0x00036578, 80 bytes long. Data: <ABCDEFGHIJKLMNOP> 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 {284} normal block at 0x00035278, 8 bytes long. Data: < ![ > EC FD 21 5B 00 00 00 00 {283} normal block at 0x00036418, 48 bytes long. Data: < > 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 {282} normal block at 0x00035CB8, 8 bytes long. Data: < ![ > 0C FE 21 5B 00 00 00 00 {281} normal block at 0x00035C70, 8 bytes long. Data: < ![ > CC FD 21 5B 00 00 00 00 {159} normal block at 0x00035798, 8 bytes long. Data: < ![ > AC FD 21 5B 00 00 00 00 {158} normal block at 0x00035708, 80 bytes long. Data: <ABCDEFGHIJKLMNOP> 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 {157} normal block at 0x000356C0, 8 bytes long. Data: < ![ > 18 FD 21 5B 00 00 00 00 {156} normal block at 0x00035650, 48 bytes long. Data: < > 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 {155} normal block at 0x00035608, 8 bytes long. Data: <8 ![ > 38 FD 21 5B 00 00 00 00 Object dump complete. -- View this message in context: http://boost.2283326.n4.nabble.com/filesystem-current-path-memory-leak-tp305... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (1)
-
clarkm2