Fix memory leak 26/229726/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 3 Apr 2020 05:35:24 +0000 (14:35 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 3 Apr 2020 05:35:24 +0000 (14:35 +0900)
Change-Id: Ie22b80c69e7f79f0d2f28b239f1722f9aa6d5406
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/app/CDrApp.cpp

index 434a9594014879f04f977870b87b092410878cfc..c032bd0ec8d86846e75b50d49c84ca753eb4b9a2 100755 (executable)
@@ -157,9 +157,10 @@ void CDrApp::onAppControl(app_control_h request, bool firstLaunch)
 
        if (caller_id != nullptr) {
                if(strcmp(caller_id, "com.samsung.w-home") != 0 && strcmp(caller_id, "com.samsung.w-gallery") != 0)
-                       {
+               {
                        CDrAppData::getInstance()->setAppControlService(request);
                }
+               free(caller_id);
        }
 
        app_control_get_operation(request, &_appControlOperation);