Fix bug not to connect after failing to connect 29/203029/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 9 Apr 2019 06:14:38 +0000 (15:14 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 9 Apr 2019 06:14:38 +0000 (15:14 +0900)
Change-Id: If91be5c8babe3c7dfebc9664a689c3ca298c77d0
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/autofill-daemon.c

index a480f29..238fb4e 100644 (file)
@@ -885,6 +885,8 @@ static bool connect_service()
     ret = rpc_port_proxy_AutofillSvcPort_connect(svc_rpc_h);
     if (ret != RPC_PORT_ERROR_NONE) {
         LOGW("Failed to connect. error code: %#x, message: %s", ret, get_error_message(ret));
+        rpc_port_proxy_AutofillSvcPort_destroy(svc_rpc_h);
+        svc_rpc_h = NULL;
         return false;
     }