From 4950a8abcc01526dfd034c10fda31706ef7a4c99 Mon Sep 17 00:00:00 2001 From: Denis Dolzhenko Date: Wed, 16 Nov 2016 14:21:28 +0200 Subject: [PATCH] Fixed: memory leak. Change-Id: Ie0369b47380104804ca88ddb8216688788f9e35b Signed-off-by: Denis Dolzhenko --- src/Common/MsgEngine/src/private/MsgStoragePrivate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Common/MsgEngine/src/private/MsgStoragePrivate.cpp b/src/Common/MsgEngine/src/private/MsgStoragePrivate.cpp index e097ad9b..ccac32ec 100644 --- a/src/Common/MsgEngine/src/private/MsgStoragePrivate.cpp +++ b/src/Common/MsgEngine/src/private/MsgStoragePrivate.cpp @@ -378,6 +378,7 @@ MessageListRef MsgStoragePrivate::searchMessage(const std::string &word) msg_set_str_value(listCond, MSG_LIST_CONDITION_TEXT_VALUE_STR, word.c_str(), word.length()); msg_error_t error = msg_get_message_list2(m_ServiceHandle, listCond, &searchList); + msg_release_struct(&listCond); if(error == 0) res.reset(new MessageStructListPrivate(true, searchList)); -- 2.34.1