From: Youngjae Shin Date: Fri, 26 Jun 2020 05:19:48 +0000 (+0900) Subject: fix memory leak X-Git-Tag: submit/tizen/20200706.012610~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1ffa0c3240a8acd131378b9639ef8ae2bc994b5;p=platform%2Fcore%2Fsystem%2Fmodes.git fix memory leak Change-Id: I0e7b71dc1ec14e9cd12e9af618cd2e91ff1dc1d4 --- diff --git a/supervisor/RequestHandler.cpp b/supervisor/RequestHandler.cpp index 77ed223..4fba690 100644 --- a/supervisor/RequestHandler.cpp +++ b/supervisor/RequestHandler.cpp @@ -203,6 +203,10 @@ Mode RequestHandler::getModefromData(GVariant *inData) ERR("createAction(%s, %s, %s) Fail(%s)", id, actName, value, e.what()); g_variant_iter_free(iter); g_variant_unref(actionList); + //g_variant_iter_loop() need to free at breaking out of this loop + free(id); + free(actName); + free(value); throw ModesEx(ModesEx::INVALID_ARG, "Action is null!"); } g_variant_iter_free(iter);