]> granicus.if.org Git - curl/commitdiff
ftp: fixed a memory leak on wildcard error path
authorDan Fandrich <dan@coneharvesters.com>
Wed, 29 Jan 2014 21:40:57 +0000 (22:40 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 30 Jan 2014 21:15:03 +0000 (22:15 +0100)
lib/multi.c

index 398be37a9d8cb021b1b07e9b99d7a92b34bee0d5..b3b57161287de84b59ebf8f032edc0bdf7d480d5 100644 (file)
@@ -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 */