Revert "WGID-176057: Fixed memory leak" 25/115725/1
authortaesub kim <taesub.kim@samsung.com>
Tue, 21 Feb 2017 06:29:00 +0000 (22:29 -0800)
committertaesub kim <taesub.kim@samsung.com>
Tue, 21 Feb 2017 06:29:00 +0000 (22:29 -0800)
This reverts commit f3e8ba56bb08c1098ccbb2b324c7bdf74db0c580.

Change-Id: Ic520239766acb6b678802a9f9fe594fad54cb780

src/technology.c

index cdd804c..4e9cd9e 100755 (executable)
@@ -1281,10 +1281,8 @@ static struct connman_technology *technology_get(enum connman_service_type type)
        }
 
        technology = g_try_new0(struct connman_technology, 1);
-       if (!technology) {
-               g_slist_free(tech_drivers);
+       if (!technology)
                return NULL;
-       }
 
        technology->refcount = 1;
        technology->type = type;