Hi all, I create a patch to remove a memory leak when tcp_pdu_create procedure fails. My patch solve this problem but I think that best way to solve it is call tcp_pdu_delete, let me know.
Regards, Manuele
=== modified file 'uspace/srv/net/tcp/pdu.c' --- uspace/srv/net/tcp/pdu.c 2015-05-22 07:21:37 +0000 +++ uspace/srv/net/tcp/pdu.c 2016-03-29 09:45:03 +0000 @@ -248,6 +248,7 @@ free(pdu->header); if (pdu->text != NULL) free(pdu->text); + free(pdu); return NULL; }
_______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
