mmi-api-handler: remove unreachable code 00/264100/1
authorSung-Jin Park <sj76.park@samsung.com>
Thu, 9 Sep 2021 09:05:55 +0000 (18:05 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:26:58 +0000 (20:26 +0900)
Change-Id: I3cf3a3acb2adf3596d22c005addb552f2c48ae27
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/mmi-api-handler.c

index 4319339..b858553 100644 (file)
@@ -38,7 +38,7 @@ static void _on_create(rpc_port_stub_mmifw_context_h context, void *user_data)
 {
        int r;
        char *sender = NULL;
-       mmi_client *mc =  NULL;
+       mmi_client *mc = NULL;
 
        r = rpc_port_stub_mmifw_context_get_sender(context, &sender);
        if (r || !sender)
@@ -64,8 +64,6 @@ static void _on_create(rpc_port_stub_mmifw_context_h context, void *user_data)
 err:
        if (sender)
                free(sender);
-       if (mc)
-               free(mc);
 }
 
 static void _on_terminate(rpc_port_stub_mmifw_context_h context, void *user_data)