mirror of
https://github.com/curl/curl.git
synced 2026-07-07 02:57:15 +03:00
make it compile warning-free and free() the memory before exit
This commit is contained in:
parent
b2be6799f2
commit
ab1f5c3edd
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue