Changeset ddbab71 in rtems-tools


Ignore:
Timestamp:
Nov 3, 2014, 10:40:15 PM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
53e387d
Parents:
0f93ea6
Message:

Fix buffer leak on error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/rld-path.cpp

    r0f93ea6 rddbab71  
    115115          buf = new char[32 * 1024];
    116116          if (!::getcwd (buf, 32 * 1024))
     117          {
     118            delete [] buf;
    117119            throw rld::error (::strerror (errno), "get current working directory");
     120          }
    118121          path_join (buf, path, apath);
    119122          delete [] buf;
Note: See TracChangeset for help on using the changeset viewer.