]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[netdevice] Fix erroneous use of free(iobuf) instead of free_iob(iobuf)
authorMichael Brown <mcb30@ipxe.org>
Tue, 9 Dec 2014 23:49:11 +0000 (23:49 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 12 Dec 2014 10:18:03 +0000 (10:18 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/netdevice.c

index a8020858e8791523d280012e382335dd215006c4..a55e6b7d778dae590cd51c34f47aab528427f2ca 100644 (file)
@@ -1080,7 +1080,7 @@ static unsigned int net_discard ( void ) {
 
                        /* Discard first deferred packet */
                        list_del ( &iobuf->list );
-                       free ( iobuf );
+                       free_iob ( iobuf );
 
                        /* Report discard */
                        discarded++;