projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2be679
)
make it compile warning-free and free() the memory before exit
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 10 Oct 2005 20:58:18 +0000
(20:58 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 10 Oct 2005 20:58:18 +0000
(20:58 +0000)
docs/examples/getinmemory.c
patch
|
blob
|
history
diff --git
a/docs/examples/getinmemory.c
b/docs/examples/getinmemory.c
index
3ca3aed
..
00ed39e
100644
(file)
--- a/
docs/examples/getinmemory.c
+++ b/
docs/examples/getinmemory.c
@@
-14,6
+14,8
@@
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <curl/curl.h>
#include <curl/types.h>
@@
-93,5
+95,8
@@
int main(int argc, char **argv)
* you're done with it, you should free() it as a nice application.
*/
+ if(chunk.memory)
+ free(chunk.memory);
+
return 0;
}