Revert "Imported Upstream version 7.44.0"
[platform/upstream/curl.git] / tests / libtest / lib571.c
index d8dad39..78c1c95 100644 (file)
@@ -37,6 +37,8 @@
 #  include <fcntl.h>
 #endif
 
+#include <curl/mprintf.h>
+
 #include "warnless.h"
 #include "memdebug.h"
 
@@ -195,7 +197,9 @@ int test(char *URL)
   }
 
 test_cleanup:
-  free(stream_uri);
+
+  if(stream_uri)
+    free(stream_uri);
 
   if(protofile)
     fclose(protofile);