Fix memleak
This commit is contained in:
parent
b6258759f0
commit
da6815ec62
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ void socks5_create_dns_client(struct evt_core_ctx* ctx, char* proxy_host, char*
|
|||
memset(fdinfo.other, 0, sizeof(struct socks5_ctx));
|
||||
fdinfo.free_other = socks5_free_ctx;
|
||||
sprintf(url, "socks5:send-hs:%s:%d", addr, port);
|
||||
fdinfo.url = strdup(url);
|
||||
fdinfo.url = url;
|
||||
|
||||
// 3. Fill socks5_ctx structures
|
||||
s5ctx = fdinfo.other;
|
||||
|
|
Loading…
Reference in a new issue