remove unnecessary condition check 14/178514/1 accepted/tizen/unified/20180511.172146 submit/tizen/20180510.081628
authorYoungjae Shin <yj99.shin@samsung.com>
Thu, 10 May 2018 08:01:01 +0000 (17:01 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Thu, 10 May 2018 08:01:01 +0000 (17:01 +0900)
Change-Id: I9d1000c0e169150e57d5c5a8be9c8cc6938c8aa8

server/ctsvc_ipc_server.c

index 39ea717..2273eed 100644 (file)
@@ -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;
 }