summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2017-02-21 05:38:45 (GMT)
committerSeonah Moon <seonah1.moon@samsung.com>2017-02-21 05:38:54 (GMT)
commitf3e8ba56bb08c1098ccbb2b324c7bdf74db0c580 (patch)
treec540fa19433c178c55440bd3a6add3601850202b
parent17113aba16e7244946e2e8bc95c8f209c08cf285 (diff)
downloadconnman-f3e8ba56bb08c1098ccbb2b324c7bdf74db0c580.zip
connman-f3e8ba56bb08c1098ccbb2b324c7bdf74db0c580.tar.gz
connman-f3e8ba56bb08c1098ccbb2b324c7bdf74db0c580.tar.bz2
WGID-176057: Fixed memory leakrefs/changes/95/115695/1
Change-Id: Ibabb17806c7adfb8316d34c6f347dfe7f29f8afc Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rwxr-xr-xsrc/technology.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/technology.c b/src/technology.c
index 4e9cd9e..cdd804c 100755
--- a/src/technology.c
+++ b/src/technology.c
@@ -1281,8 +1281,10 @@ static struct connman_technology *technology_get(enum connman_service_type type)
}
technology = g_try_new0(struct connman_technology, 1);
- if (!technology)
+ if (!technology) {
+ g_slist_free(tech_drivers);
return NULL;
+ }
technology->refcount = 1;
technology->type = type;