When there was an error in previous iteration,
error->messge wil be referenced as an freed state in next iteration.
This may causes a crash.
Change-Id: Iedf6414ea359a1decc06007a919650469768c705
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
_E("failed to create new proxy, error(%s)",
error->message);
g_error_free(error);
+ error = NULL;
ret = APP2EXT_ERROR_DBUS_FAILED;
retry_cnt++;
usleep(CONNECTION_WAIT_USEC);
if (error != NULL) {
_E("proxy call sync error(%s)", error->message);
g_error_free(error);
+ error = NULL;
ret = APP2EXT_ERROR_DBUS_FAILED;
retry_cnt++;
usleep(CONNECTION_WAIT_USEC);