diff options
author | Jim Ingham <jingham@apple.com> | 2013-05-15 18:27:08 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-05-15 18:27:08 +0000 |
commit | 5c42d8a87ca7e3744c42926092444994595a688e (patch) | |
tree | 57817946defe1e672cc7923a01d220831ce13bcf /lldb/source/Host/common/FileSpec.cpp | |
parent | 0f2a6fe613a6b5f196e84412baa1251a0b5e4ff0 (diff) | |
download | bcm5719-llvm-5c42d8a87ca7e3744c42926092444994595a688e.tar.gz bcm5719-llvm-5c42d8a87ca7e3744c42926092444994595a688e.zip |
Fixed a few obvious errors pointed out by the static analyzer.
llvm-svn: 181911
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 3e56e5c204e..bed68e2aa6e 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -980,6 +980,8 @@ FileSpec::EnumerateDirectory { // The subdirectory returned Quit, which means to // stop all directory enumerations at all levels. + if (buf) + free (buf); return eEnumerateDirectoryResultQuit; } break; |