- g_dbus_connection_call_sync consumes GVariant argument
on this situations
- on succeed
- on failed with setting GErr
- So, we have to free only if it is failed without setting GErr
Change-Id: I39466f7ac0cddb229bd61ace5f3b9687f80e069f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
*error = RUNTIME_INFO_ERROR_PERMISSION_DENIED;
else
*error = RUNTIME_INFO_ERROR_REMOTE_IO;
- if (args_in)
+ if (args_in && !err)
g_variant_unref(args_in);
return NULL;
//LCOV_EXCL_STOP