projects
/
platform
/
upstream
/
curl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Update to 7.44.0"
[platform/upstream/curl.git]
/
docs
/
examples
/
postinmemory.c
diff --git
a/docs/examples/postinmemory.c
b/docs/examples/postinmemory.c
index
3afac4b
..
cd2bd13
100644
(file)
--- a/
docs/examples/postinmemory.c
+++ b/
docs/examples/postinmemory.c
@@
-101,7
+101,8
@@
int main(void)
/* always cleanup */
curl_easy_cleanup(curl);
- free(chunk.memory);
+ if(chunk.memory)
+ free(chunk.memory);
/* we're done with libcurl, so clean it up */
curl_global_cleanup();