From 630c90a6452937cc883e2baa074dac8ee15f32f3 Mon Sep 17 00:00:00 2001 From: Youngjae Shin Date: Thu, 10 May 2018 17:01:01 +0900 Subject: [PATCH] remove unnecessary condition check Change-Id: I9d1000c0e169150e57d5c5a8be9c8cc6938c8aa8 --- server/ctsvc_ipc_server.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/server/ctsvc_ipc_server.c b/server/ctsvc_ipc_server.c index 39ea717..2273eed 100644 --- a/server/ctsvc_ipc_server.c +++ b/server/ctsvc_ipc_server.c @@ -2093,10 +2093,8 @@ DATA_FREE: contacts_list_destroy(list, true); free(view_uri); free(keyword); - if (start_match) - free(start_match); - if (end_match) - free(end_match); + free(start_match); + free(end_match); ctsvc_server_start_timeout(); return; } @@ -2261,10 +2259,8 @@ DATA_FREE: contacts_list_destroy(list, true); free(view_uri); free(keyword); - if (start_match) - free(start_match); - if (end_match) - free(end_match); + free(start_match); + free(end_match); ctsvc_server_start_timeout(); return; } @@ -2420,10 +2416,8 @@ DATA_FREE: contacts_list_destroy(list, true); contacts_query_destroy(query); free(keyword); - if (start_match) - free(start_match); - if (end_match) - free(end_match); + free(start_match); + free(end_match); ctsvc_server_start_timeout(); return; } -- 2.7.4