]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Free memory when removing packet.
authorManoel Rebelo Abranches <mrabran@br.ibm.com>
Fri, 6 May 2011 17:03:51 +0000 (14:03 -0300)
committerManoel Rebelo Abranches <mrabran@br.ibm.com>
Fri, 6 May 2011 17:03:51 +0000 (14:03 -0300)
include/grub/net.h

index 37b258f36797313d2405f126ea402a215062eefd..59974b94fac58789189627f5cb357be5c4e87905 100644 (file)
@@ -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;