Browse Source

Free resources on remote close

Deallocate resources immediately if client closes connection.
pull/19/head
Murat Seker 8 years ago
committed by GitHub
parent
commit
e198c97abc
  1. 2
      ftpd.c

2
ftpd.c

@ -1264,6 +1264,8 @@ static err_t ftpd_msgrecv(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t
free(text); free(text);
} }
pbuf_free(p); pbuf_free(p);
} else if (err == ERR_OK && p != NULL) {
ftpd_msgclose(pcb, fsm);
} }
return ERR_OK; return ERR_OK;

Loading…
Cancel
Save