Module: check_mk
Branch: master
Commit: fc3b0165cf800b3782c00d1458f1e02c0583f69a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fc3b0165cf800b…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Aug 1 16:47:46 2017 +0200
Simplify ownership, killing a strdup/free pair.
This basically swaps the roles of LogEntry::_msg and LogEntry::_text. The
former is now just a local variable, and it will die soon.
Change-Id: I559dd3569a37a6251cf5f47ea63db2e30f1b0f64
---
livestatus/src/LogEntry.cc | 100 ++++++++++++++++++++++-----------------------
livestatus/src/LogEntry.h | 9 ++--
livestatus/src/Logfile.cc | 2 +-
livestatus/src/Logfile.h | 3 +-
livestatus/src/TableLog.cc | 2 +-
5 files changed, 56 insertions(+), 60 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=fc3b0165cf…