diff options
author | bertliao <sbert_cn@sina.com> | 2018-02-25 12:18:46 +0800 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2018-02-25 14:56:50 +0000 |
commit | 81ea4feb2ed6ee2fabd4e2ec0557318d764757a2 (patch) | |
tree | f7a8ff1639bf95a82802de26da59f4145552ec30 /src/transparent-proxy.c | |
parent | c7c88e9c59a15d23a3de7d2e22781c57ec49b1fe (diff) |
fix possible memory leak
Diffstat (limited to 'src/transparent-proxy.c')
-rw-r--r-- | src/transparent-proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transparent-proxy.c b/src/transparent-proxy.c index 5d0c8f6..df5fbce 100644 --- a/src/transparent-proxy.c +++ b/src/transparent-proxy.c @@ -45,7 +45,7 @@ static int build_url (char **url, const char *host, int port, const char *path) assert (path != NULL); len = strlen (host) + strlen (path) + 14; - *url = (char *) safemalloc (len); + *url = (char *) saferealloc (*url, len); if (*url == NULL) return -1; |