Commit 4486d336 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

argh, forgot the check for a connection before we call Curl_done

parent 45e4b811
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -245,6 +245,9 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
    Curl_easy_addmulti(easy->easy_handle, NULL); /* clear the association
                                                    to this multi handle */

    /* if we have a connection we must call Curl_done() here so that we
       don't leave a half-baked one around */
    if(easy->easy_conn)
      Curl_done(&easy->easy_conn, easy->result);

    /* make the previous node point to our next */