Fix memory leak

After parsing the command line arguments, ArgumentParser does a release of
unique pointer which will just release the ownership. This pointer is then
never cleaned up resulting in leak. Fix is to reset the unique_ptr to null

Change-Id: Ifa69399e2440547947b214dc4a36c3065b6ff608
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
1 file changed
tree: 16c9ca63604732299d84ca8f946a3558a96ae0c9
  1. argument.cpp
  2. argument.hpp
  3. bootstrap.sh
  4. configure.ac
  5. directory.cpp
  6. directory.hpp
  7. hwmon.hpp
  8. LICENSE
  9. Makefile.am
  10. readd.cpp
  11. README.md
  12. sensorcache.hpp
  13. sensorset.cpp
  14. sensorset.hpp
  15. sysfs.hpp
README.md

Exposes generic hwmon entries as DBus objects.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.