aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-01-29 22:40:57 +0100
committerDan Fandrich <dan@coneharvesters.com>2014-01-30 22:15:03 +0100
commitc631a54bb60b2bbaf5085a679ce140330158d513 (patch)
treecea48879cbf2d754be4b98208acab053aa5e6da1 /lib
parent768151449b386488ac8fe869f48bf2930123d601 (diff)
ftp: fixed a memory leak on wildcard error path
Diffstat (limited to 'lib')
-rw-r--r--lib/multi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 398be37a9..b3b571612 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -551,9 +551,11 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
Curl_getoff_all_pipelines(data, data->easy_conn);
}
+ Curl_wildcard_dtor(&data->wildcard);
+
/* as this was using a shared connection cache we clear the pointer
to that since we're not part of that multi handle anymore */
- data->state.conn_cache = NULL;
+ data->state.conn_cache = NULL;
/* change state without using multistate(), only to make singlesocket() do
what we want */