diff options
author | taesub kim <taesub.kim@samsung.com> | 2017-02-20 22:29:00 -0800 |
---|---|---|
committer | taesub kim <taesub.kim@samsung.com> | 2017-02-20 22:29:00 -0800 |
commit | 5de7ab4c6a9f5383c09477897339ac344e2801b9 (patch) | |
tree | 4b379835e9d28d7d6aabc1c70b13061a8c03b991 | |
parent | f3e8ba56bb08c1098ccbb2b324c7bdf74db0c580 (diff) | |
download | connman-5de7ab4c6a9f5383c09477897339ac344e2801b9.tar.gz connman-5de7ab4c6a9f5383c09477897339ac344e2801b9.tar.bz2 connman-5de7ab4c6a9f5383c09477897339ac344e2801b9.zip |
Revert "WGID-176057: Fixed memory leak"
This reverts commit f3e8ba56bb08c1098ccbb2b324c7bdf74db0c580.
Change-Id: Ic520239766acb6b678802a9f9fe594fad54cb780
-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; |