Module: check_mk
Branch: master
Commit: 3f4127142fe96bad603b08bbbe68f08c36bde130
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3f4127142fe96b…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Wed Jan 10 16:06:28 2018 +0100
Windows agent: use RAII for local memory buffers
Wrap locally allocated memory to RAII-managed handles in order to avoid
explicitly having to free the local memory buffer.
Change-Id: Idd52a6ad29d4d0802d58e66f1987b48a02c116aa
---
agents/windows/build_version | 2 +-
agents/windows/sections/SectionPS.cc | 10 +--
agents/windows/sections/SectionServices.cc | 112 ++++++++++++++---------------
agents/windows/types.h | 13 ++++
agents/windows/win_error.cc | 7 +-
5 files changed, 78 insertions(+), 66 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=3f4127142f…