projects
/
platform
/
framework
/
web
/
download-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2a161d
)
Free proxy_uri
11/237911/1
submit/tizen_5.5/20200707.014509
submit/tizen_5.5/20200717.035054
author
Cheoleun Moon
<chleun.moon@samsung.com>
Mon, 6 Jul 2020 09:32:43 +0000
(18:32 +0900)
committer
Cheoleun Moon
<chleun.moon@samsung.com>
Mon, 6 Jul 2020 10:34:51 +0000
(19:34 +0900)
In condition that proxy_uri is "0.0.0.0", proxy_uri is not freed.
Change-Id: Ifd3759c1a7b416cd69fc134eb653b0a5802a7a73
agent/download-agent-http-mgr.c
patch
|
blob
|
history
diff --git
a/agent/download-agent-http-mgr.c
b/agent/download-agent-http-mgr.c
index
c09567f
..
3f26f1c
100755
(executable)
--- a/
agent/download-agent-http-mgr.c
+++ b/
agent/download-agent-http-mgr.c
@@
-1174,9
+1174,11
@@
static proxy_info_t *__get_proxy_info()
}
proxy_info->user_name = strlen(user_name) > 0 ? strdup(user_name) : DA_NULL;
proxy_info->password = strlen(password) > 0 ? strdup(password) : DA_NULL;
- free(proxy_uri);
}
+ if (proxy_uri)
+ free(proxy_uri);
+
DA_LOGD("host[%s] user_name[%s] password[***]", host, user_name);
return proxy_info;