From d8c4b82ae399e4b5eadf115d38e29ff597fa0df4 Mon Sep 17 00:00:00 2001 From: Somin Kim Date: Mon, 16 May 2016 16:16:48 +0900 Subject: [PATCH] Remove memory leak Change-Id: I3c03d25d1079d79b0d6f27dbc8975766e4b66198 Signed-off-by: Somin Kim --- src/social-stats/LogAggregator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/social-stats/LogAggregator.cpp b/src/social-stats/LogAggregator.cpp index ecee5e2..63dbfea 100644 --- a/src/social-stats/LogAggregator.cpp +++ b/src/social-stats/LogAggregator.cpp @@ -65,12 +65,13 @@ void ctx::ContactLogAggregator::onExecuted(unsigned int queryId, int error, std: lastTime = currentTime - LOG_RETENTION_PERIOD; __getUpdatedContactLogList(lastTime, &list); - IF_FAIL_VOID(list); + IF_FAIL_CATCH(list); __removeExpiredLog(); __insertContactLogList(list); __destroyContactLogList(list); +CATCH: delete this; } -- 2.34.1