rovinbhandari / FTP

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

need to free memory #3

Closed pigLoveRabbit520 closed 6 years ago

pigLoveRabbit520 commented 6 years ago
struct command* cmd = (struct command*) malloc(sizeof(struct command));

when use malloc, we should use free, and also should free npaths

rovinbhandari commented 6 years ago

You're right, there is some cleanup that needs to happen after each call is done processing. Would you like to submit a PR?

pigLoveRabbit520 commented 6 years ago

@rovinbhandari OK, My pleasure.

pigLoveRabbit520 commented 6 years ago

@rovinbhandari PR is submitted.