From e2e593a036c992f2d38e060e14b52c4a8862ca2d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 14 May 2004 09:22:12 +0000 Subject: clean up properly on failure to enable easier libcurl leak detection --- tests/libtest/lib507.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/libtest/lib507.c') 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); -- cgit v1.2.3