Fix memory leak 91/122891/3 accepted/tizen/3.0/common/20170406.142600 accepted/tizen/3.0/ivi/20170406.101530 accepted/tizen/3.0/mobile/20170406.101118 accepted/tizen/3.0/tv/20170406.101325 accepted/tizen/3.0/wearable/20170406.101434 submit/tizen_3.0/20170406.040809
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 4 Apr 2017 01:45:24 +0000 (10:45 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 4 Apr 2017 05:39:17 +0000 (14:39 +0900)
commitfb89783094af09d4a5d22d60516fe434dca08959
tree092e99f0c53670a8bc85b731a46550fe98d4b2bc
parent362c7bfa054690b8babbe70ce033f6fcd7eac11f
Fix memory leak

   bus/at-spi-bus-launcher.c
   argv[1] is allocated in memory by g_strdup_printf.
   but do not free. So I add g_free function.

   test/at_spi2_tool.c
   Added a null check to avoid double free.

Change-Id: I80ce6af2839c4dfe9c1460885f5b93f281f7ef29
bus/at-spi-bus-launcher.c
test/at_spi2_tool.c