rovinbhandari / FTP

Implementation of a simple FTP client and server
157 stars 99 forks source link

Memory leak #5

Open Arinerron opened 5 years ago

Arinerron commented 5 years ago

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.