Imported Upstream version 7.44.0
[platform/upstream/curl.git] / docs / examples / postinmemory.c
index cd2bd13..3afac4b 100644 (file)
@@ -101,8 +101,7 @@ int main(void)
     /* always cleanup */
     curl_easy_cleanup(curl);
 
-    if(chunk.memory)
-      free(chunk.memory);
+    free(chunk.memory);
 
     /* we're done with libcurl, so clean it up */
     curl_global_cleanup();