FTP
FTP copied to clipboard
Memory leak
You mallocate a chunk for each request but don't free it. See below:
struct packet* data = (struct packet*) malloc(size_packet);
It never frees it though.