synopsys error handling lssue fixed. 00/163400/1 accepted/tizen_4.0_unified tizen_4.0 tizen_4.0_tv accepted/tizen/4.0/unified/20171221.070959 submit/tizen_4.0/20171214.014804 submit/tizen_4.0/20171221.020426 tizen_4.0.IoT.p2_release
authorDoHyung Lim <delight.lim@samsung.com>
Mon, 11 Dec 2017 04:46:24 +0000 (13:46 +0900)
committerDoHyung Lim <delight.lim@samsung.com>
Mon, 11 Dec 2017 04:58:22 +0000 (13:58 +0900)
Change-Id: I4858522e88a3bef834c0c679a88f17528c006566
Signed-off-by: DoHyung Lim <delight.lim@samsung.com>
provider/browser-provider-shm.c

index 5919b14f075093f16700f5390b0ff9ffa108603d..b34a3787a466c33a0fdff88cdcc2af092fc2ef0f 100644 (file)
@@ -30,9 +30,14 @@ void bp_shm_free(bp_shm_defs *shm)
                if (shm->mem != NULL)
                        shmdt(shm->mem);
                shm->mem = NULL;
-               if (shm->id > 0)
-                       shmctl(shm->id, IPC_RMID, 0);
-               shm->id = -1;
+               if (shm->id > 0) {
+                       int ret_val = shmctl(shm->id, IPC_RMID, 0);
+                       if (ret_val != -1) {
+                               shm->id = -1;
+                       } else {
+                               TRACE_ERROR("[ERROR][SHM][%d] shmctl", ret_val);
+                       }
+               }
                free(shm->local);
                shm->local = NULL;
        }