Revert "Update to 7.44.0"
[platform/upstream/curl.git] / tests / libtest / lib570.c
index 178f58f..fe10de5 100644 (file)
@@ -20,6 +20,9 @@
  *
  ***************************************************************************/
 #include "test.h"
+
+#include <curl/mprintf.h>
+
 #include "memdebug.h"
 
 /* build request url */
@@ -102,7 +105,9 @@ int test(char *URL)
   }
 
 test_cleanup:
-  free(stream_uri);
+
+  if(stream_uri)
+    free(stream_uri);
 
   curl_easy_cleanup(curl);
   curl_global_cleanup();