Module: check_mk
Branch: master
Commit: b0c64a59e78d15509d342c941fdd0b22a7c472e5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0c64a59e78d15…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Oct 9 10:04:21 2015 +0200
Memory allocated with new[] must be deallocted with delete[].
---
livestatus/src/Query.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/livestatus/src/Query.cc b/livestatus/src/Query.cc
index 876cb5a..2fca315 100644
--- a/livestatus/src/Query.cc
+++ b/livestatus/src/Query.cc
@@ -977,7 +977,7 @@ void Query::finish()
delete _stats_aggregators[i];
}
outputDatasetEnd();
- delete _stats_aggregators;
+ delete[] _stats_aggregators;
}
// normal query