Free the string allocated by g_variant_print() in JobDBusCall 33/140733/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 26 Jul 2017 07:27:05 +0000 (16:27 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 26 Jul 2017 07:27:05 +0000 (16:27 +0900)
Change-Id: I48079de1bf06fa765955180184e483ad31b98100
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/shared/JobAction.cpp

index 745a2c0cc432883132266f5721d7a28c0332e1d3..2b2df6dc3a4ba42a77b1ed81490c6b4e0ba1f2d5 100644 (file)
@@ -91,6 +91,7 @@ JobDBusCall::JobDBusCall(const std::string& busName, const std::string& objPath,
                //TODO: escaping quotes?
                char* paramStr = g_variant_print(param, TRUE);
                __parameters = paramStr ? paramStr : EMPTY_STR;
+               g_free(paramStr);
        }
 }