Fix Prevent issue
authorKarol Pawlowski <k.pawlowski@samsung.com>
Mon, 23 Sep 2013 06:14:35 +0000 (08:14 +0200)
committerHoseon LEE <hoseon46.lee@samsung.com>
Sun, 29 Sep 2013 08:09:53 +0000 (17:09 +0900)
[Issue#]   CID: 13633
[Problem]  Static analysis fails
[Cause]    N/A
[Solution] Refactored error__refuse_dummy_process method

[Verification] Build wrt repository.
Launch widget with wrt-client -l and wrt-launcher -s

Change-Id: I13445890810f98c372488aae0e62b97920f3d94b

src/wrt-launchpad-daemon/src/process_pool.c

index 170ea68..7c18e42 100644 (file)
@@ -242,15 +242,7 @@ void __refuse_dummy_process(int server_fd)
     close(client_fd);
     _D("refuse connection!");
 
-    return;
-
 err__refuse_dummy_process:
-
-    if (client_fd != -1)
-    {
-        close(client_fd);
-    }
-
     return;
 }