aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib507.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-14 09:22:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-14 09:22:12 +0000
commite2e593a036c992f2d38e060e14b52c4a8862ca2d (patch)
tree69ce3c089381d03bd4f66792b2c994ddc0a13980 /tests/libtest/lib507.c
parent9ce0a7b49d4f004b7d55833a35feabbc8c27726f (diff)
clean up properly on failure to enable easier libcurl leak detection
Diffstat (limited to 'tests/libtest/lib507.c')
-rw-r--r--tests/libtest/lib507.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/libtest/lib507.c b/tests/libtest/lib507.c
index f45169496..b16c23368 100644
--- a/tests/libtest/lib507.c
+++ b/tests/libtest/lib507.c
@@ -39,9 +39,10 @@ int test(char *URL)
}
}
msg = curl_multi_info_read(multi, &still_running);
- /* this should now contain a result code from the easy handle,
- get it */
- i = msg->data.result;
+ if(msg)
+ /* this should now contain a result code from the easy handle,
+ get it */
+ i = msg->data.result;
curl_multi_cleanup(multi);
curl_easy_cleanup(curls);