remove unnecessary condition check
[platform/core/pim/contacts-service.git] / 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;
 }