Free memory when removing packet.
This commit is contained in:
parent
90eb90e24c
commit
c5934345be
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ grub_net_remove_packet (grub_net_packet_t *pkt)
|
||||||
pkt->next->prev = pkt->prev;
|
pkt->next->prev = pkt->prev;
|
||||||
else
|
else
|
||||||
pkt->up->last = pkt->prev;
|
pkt->up->last = pkt->prev;
|
||||||
|
grub_free (pkt);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct grub_net_app_protocol *grub_net_app_level_t;
|
typedef struct grub_net_app_protocol *grub_net_app_level_t;
|
||||||
|
|
Loading…
Reference in a new issue