X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fexamples%2Fpostinmemory.c;h=3afac4b2f40e8ee9e264d147588261bbad41799e;hb=8a08705db260779441360e959b97b6c172f8acb0;hp=cd2bd13fb4d04d5e83fd12ab5d96acb394bf208d;hpb=f7bbc1c9b6a8e2c815d09612b53f453c90d962e0;p=platform%2Fupstream%2Fcurl.git diff --git a/docs/examples/postinmemory.c b/docs/examples/postinmemory.c index cd2bd13..3afac4b 100644 --- a/docs/examples/postinmemory.c +++ b/docs/examples/postinmemory.c @@ -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();