Fix issue detected by static analysis tool 21/126021/2
authorsungwook79.park <sungwook79.park@samsung.com>
Thu, 20 Apr 2017 01:30:03 +0000 (10:30 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Thu, 20 Apr 2017 01:36:08 +0000 (10:36 +0900)
Change-Id: I1fbee5d0f6c71a01d1c535e94b178ea80df40e55
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/request_mgr.cpp

index e1c4097..6da6d0b 100644 (file)
@@ -254,7 +254,7 @@ void smr::request_mgr::string_to_unicode(vector<string>& replies) {
                                char* utf_8 = eina_unicode_unicode_to_utf8(unicode_event, &length);
                                it->replace(idx, emoticon.first.length(), string(utf_8));
                                _SI("[utf-8]Before : %s, After : %s", emoticon.first.c_str(), utf_8);
-                               delete [] utf_8;
+                               free(utf_8);
                        }
                }
        }