Fix double free 26/179226/2
authorjusung son <jusung07.son@samsung.com>
Wed, 16 May 2018 09:47:15 +0000 (18:47 +0900)
committerjusung son <jusung07.son@samsung.com>
Wed, 16 May 2018 09:48:17 +0000 (09:48 +0000)
Change-Id: I9bf55eb96d1a5b25c3ae8f0fad073d21760e9c70
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/message_port_common.c

index 8a2d528..ef8e3e2 100755 (executable)
@@ -265,7 +265,6 @@ bool is_preloaded(const char *local_appid, const char *remote_appid)
        ret = pkgmgrinfo_appinfo_get_usr_appinfo(remote_appid, getuid(), &handle);
        if (ret != PMINFO_R_OK) {
                _LOGE("Failed to get the appinfo. %d", ret);
-               pkgmgrinfo_appinfo_destroy_appinfo(handle);
                return false;
        }
        ret = pkgmgrinfo_appinfo_is_preload(handle, &preload_remote);