Skip to content
Snippets Groups Projects
Commit ab1f5c3e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make it compile warning-free and free() the memory before exit

parent b2be6799
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment