Don't forget to delete the FileStatus structure on destruction of Path.
authorReid Spencer <rspencer@reidspencer.com>
Thu, 29 Mar 2007 16:50:49 +0000 (16:50 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 29 Mar 2007 16:50:49 +0000 (16:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35459 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/System/Path.h

index 8192dc42929ac61cc0034b7eab200ecf7171e9ed..34373ae6a37363f04ff96e4cb156e029c9b921c4 100644 (file)
@@ -163,6 +163,7 @@ namespace sys {
       /// other lib/System functionality.
       /// @brief Construct an empty (and invalid) path.
       Path() : path(), status(0) {}
+      ~Path() { delete status; }
 
       /// This constructor will accept a std::string as a path. No checking is
       /// done on this path to determine if it is valid. To determine validity