diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-11-18 16:17:37 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-11-18 16:39:31 +0100 |
commit | 409f2a041f752ef635354e1dc7b2759fcd7088d6 (patch) | |
tree | ba6516576b5a6692398374cedddf16000fa1100d /lib/hostip.h | |
parent | dd75cba3ef1a9e6ddaae9d62080713101403af1c (diff) | |
download | curl-409f2a041f752ef635354e1dc7b2759fcd7088d6.tar.gz |
fixed memory leak: CURLOPT_RESOLVE with multi interface
DNS cache entries populated with CURLOPT_RESOLVE were not properly freed
again when done using the multi interface.
Test case 1502 added to verify.
Bug: http://curl.haxx.se/bug/view.cgi?id=3575448
Reported by: Alex Gruz
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 12fb80f54..de71f54f4 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -201,10 +201,18 @@ extern sigjmp_buf curl_jmpenv; CURLcode Curl_set_dns_servers(struct SessionHandle *data, char *servers); /* + * Clean off entries from the cache + */ +void Curl_hostcache_clean(struct SessionHandle *data); + +/* * Destroy the hostcache of this handle. */ void Curl_hostcache_destroy(struct SessionHandle *data); +/* + * Populate the cache with specified entries from CURLOPT_RESOLVE. + */ CURLcode Curl_loadhostpairs(struct SessionHandle *data); #endif /* HEADER_CURL_HOSTIP_H */ |