From: Manoel Rebelo Abranches Date: Fri, 6 May 2011 17:03:51 +0000 (-0300) Subject: Free memory when removing packet. X-Git-Tag: 2.00~1195^2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5934345bea4070e56813c4064645240ff902f4a;p=thirdparty%2Fgrub.git Free memory when removing packet. --- diff --git a/include/grub/net.h b/include/grub/net.h index 37b258f36..59974b94f 100644 --- a/include/grub/net.h +++ b/include/grub/net.h @@ -178,6 +178,7 @@ grub_net_remove_packet (grub_net_packet_t *pkt) pkt->next->prev = pkt->prev; else pkt->up->last = pkt->prev; + grub_free (pkt); } typedef struct grub_net_app_protocol *grub_net_app_level_t;