Closed pigLoveRabbit520 closed 6 years ago
struct command* cmd = (struct command*) malloc(sizeof(struct command));
when use malloc, we should use free, and also should free npaths
malloc
free
npaths
You're right, there is some cleanup that needs to happen after each call is done processing. Would you like to submit a PR?
@rovinbhandari OK, My pleasure.
@rovinbhandari PR is submitted.
when use
malloc
, we should usefree
, and also should freenpaths