aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/multi-app.c4
1 files changed, 2 insertions, 2 deletions
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<HANDLECOUNT; i++)
curl_easy_cleanup(handles[i]);