diff --git a/docs/examples/multi-app.c b/docs/examples/multi-app.c index ecb7e3814..5383a40ae 100644 --- a/docs/examples/multi-app.c +++ b/docs/examples/multi-app.c @@ -98,8 +98,6 @@ int main(int argc, char **argv) } } - curl_multi_cleanup(multi_handle); - /* See how the transfers went */ while ((msg = curl_multi_info_read(multi_handle, &msgs_left))) { if (msg->msg == CURLMSG_DONE) { @@ -120,6 +118,8 @@ int main(int argc, char **argv) } } + curl_multi_cleanup(multi_handle); + /* Free the CURL handles */ for (i=0; i