Fixed a coverity for resource leak 59/174559/1 accepted/tizen/unified/20180406.144313 submit/tizen/20180406.023145
authorhyunuktak <hyunuk.tak@samsung.com>
Tue, 3 Apr 2018 04:36:36 +0000 (13:36 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Tue, 3 Apr 2018 04:36:38 +0000 (13:36 +0900)
Change-Id: I990f3c1d314580546c4dfa4716d1a2e535bcd491
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
src/rtnl.c

index 35ae0a9..ac29f31 100755 (executable)
@@ -159,6 +159,7 @@ static void read_uevent(struct interface_data *interface)
        if (__connman_rtnl_is_cellular_device(name)) {
                interface->service_type = CONNMAN_SERVICE_TYPE_CELLULAR;
                interface->device_type = CONNMAN_DEVICE_TYPE_CELLULAR;
+               g_free(name);
                return;
        }
 #endif