From 15315a712a1e91ddae5d92323b38567128c611a7 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Tue, 26 Apr 2011 04:13:53 +0000 Subject: [PATCH] fix memory leak in min aggregate --- src/stasis/util/min.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stasis/util/min.c b/src/stasis/util/min.c index 9fc8dc6..9cd776f 100644 --- a/src/stasis/util/min.c +++ b/src/stasis/util/min.c @@ -42,6 +42,8 @@ void stasis_aggregate_min_deinit(stasis_aggregate_min_t * min) { } else { } + free(min->vals); + pthread_key_delete(min->key); free(min); } void stasis_aggregate_min_add(stasis_aggregate_min_t * min, lsn_t * a) {