aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/postinmemory.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/postinmemory.c')
-rw-r--r--docs/examples/postinmemory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/examples/postinmemory.c b/docs/examples/postinmemory.c
index cd2bd13fb..3afac4b2f 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();