[llvm-commits] CVS: llvm/include/llvm/System/Path.h
Reid Spencer
reid at x10sys.com
Thu Mar 29 09:51:06 PDT 2007
Changes in directory llvm/include/llvm/System:
Path.h updated: 1.44 -> 1.45
---
Log message:
Don't forget to delete the FileStatus structure on destruction of Path.
---
Diffs of the changes: (+1 -0)
Path.h | 1 +
1 files changed, 1 insertion(+)
Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.44 llvm/include/llvm/System/Path.h:1.45
--- llvm/include/llvm/System/Path.h:1.44 Thu Mar 29 11:43:20 2007
+++ llvm/include/llvm/System/Path.h Thu Mar 29 11:50:49 2007
@@ -163,6 +163,7 @@
/// 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
More information about the llvm-commits
mailing list