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:
f2da3b4
)
Free proxy_uri
05/237905/1
accepted/tizen/unified/20200713.132959
submit/tizen/20200707.014520
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 09:36:46 +0000
(18:36 +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
7a3d51a
..
7c4d34e
100755
(executable)
--- a/
agent/download-agent-http-mgr.c
+++ b/
agent/download-agent-http-mgr.c
@@
-1163,9
+1163,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;