diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 8192dc42929..34373ae6a37 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -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