]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix a memory leak
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 10 Jul 2011 07:53:29 +0000 (09:53 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 10 Jul 2011 07:53:29 +0000 (09:53 +0200)
grub-core/net/tcp.c

index 8fbf0bdfa1e010768e8a35a9263c8ecee7be0fd1..c64170edffdbfebe6e59f0b4c16be403ebbb8f64 100644 (file)
@@ -554,6 +554,8 @@ grub_net_recv_tcp_packet (struct grub_net_buff *nb,
            sock->unack_first = NULL;
            sock->unack_last = NULL;
 
+           grub_netbuff_free (nb);
+
            return GRUB_ERR_NONE;
          }