From 81ea4feb2ed6ee2fabd4e2ec0557318d764757a2 Mon Sep 17 00:00:00 2001 From: bertliao Date: Sun, 25 Feb 2018 12:18:46 +0800 Subject: [PATCH] fix possible memory leak --- src/transparent-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;