Hi All,
I forgot to attach my patch file in my previous mail.

Cheers,
Manuele
=== modified file 'uspace/srv/net/inetsrv/reass.c'
--- uspace/srv/net/inetsrv/reass.c	2015-06-02 16:00:42 +0000
+++ uspace/srv/net/inetsrv/reass.c	2016-07-06 11:40:20 +0000
@@ -192,8 +192,10 @@
 	/* Clone the packet */
 
 	data_copy = malloc(packet->size);
-	if (data_copy == NULL)
+	if (data_copy == NULL) {
+		free(frag);
 		return ENOMEM;
+	}
 
 	memcpy(data_copy, packet->data, packet->size);
 

_______________________________________________
HelenOS-devel mailing list
HelenOS-devel@lists.modry.cz
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to