diff options
author | Chris Johns <chrisj@rtems.org> | 2014-09-13 12:20:19 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-09-13 12:20:19 +1000 |
commit | 73eb48a0459658b7d031e9e0692016b937a44881 (patch) | |
tree | 5fa775a36a6b1fc4af56d6713126ba8595d7bc3b | |
parent | Refactor code into the RTEMS Toolkit. (diff) | |
download | rtems-tools-73eb48a0459658b7d031e9e0692016b937a44881.tar.bz2 |
rtk: Fix buffer leak in rld::path::abs_path.
-rw-r--r-- | rtemstoolkit/rld-path.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rtemstoolkit/rld-path.cpp b/rtemstoolkit/rld-path.cpp index 1cdb586..1410cf8 100644 --- a/rtemstoolkit/rld-path.cpp +++ b/rtemstoolkit/rld-path.cpp @@ -116,6 +116,7 @@ namespace rld if (!::getcwd (buf, 132 * 1024)) throw rld::error (::strerror (errno), "get current working directory"); path_join (buf, path, apath); + delete [] buf; } catch (...) { |