Fix possible memory leak 14/92414/2 accepted/tizen/3.0/ivi/20161028.122954 accepted/tizen/3.0/mobile/20161028.122234 accepted/tizen/3.0/tv/20161028.122531 accepted/tizen/3.0/wearable/20161028.122749 accepted/tizen/common/20161017.170243 accepted/tizen/ivi/20161017.081555 accepted/tizen/mobile/20161017.081455 accepted/tizen/tv/20161017.081511 accepted/tizen/wearable/20161017.081531 submit/tizen/20161017.041518 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 17 Oct 2016 02:35:23 +0000 (11:35 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 17 Oct 2016 04:26:25 +0000 (13:26 +0900)
Change-Id: I1acc9ca9657532ec56a99f5bf63da642aff14562
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/request.c

index e269030..a9385b8 100644 (file)
@@ -908,6 +908,7 @@ static int __handle_request_kill(uid_t uid,
                                "default", pkgid, "")) {
                g_dbus_method_invocation_return_value(invocation,
                                g_variant_new("(ii)", PKGMGR_R_ESYSTEM, 0));
+               free(reqkey);
                return -1;
        }
 
@@ -943,6 +944,7 @@ static int __handle_request_check(uid_t uid,
                                "default", pkgid, "")) {
                g_dbus_method_invocation_return_value(invocation,
                                g_variant_new("(ii)", PKGMGR_R_ESYSTEM, 0));
+               free(reqkey);
                return -1;
        }