diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-14 09:22:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-14 09:22:12 +0000 |
commit | e2e593a036c992f2d38e060e14b52c4a8862ca2d (patch) | |
tree | 69ce3c089381d03bd4f66792b2c994ddc0a13980 /tests/libtest/lib507.c | |
parent | 9ce0a7b49d4f004b7d55833a35feabbc8c27726f (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.c | 7 |
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); |