diff options
Diffstat (limited to 'src/technology.c')
-rwxr-xr-x | src/technology.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/technology.c b/src/technology.c index cdd804ce..4e9cd9e8 100755 --- a/src/technology.c +++ b/src/technology.c @@ -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; |