From 697ffdc55b6fcb150e19ad5f746142edbcf5e372 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 6 Jul 2011 18:21:24 +0200 Subject: [PATCH] Fix a memory leak --- grub-core/net/net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/grub-core/net/net.c b/grub-core/net/net.c index 641aebd64..0f8a60413 100644 --- a/grub-core/net/net.c +++ b/grub-core/net/net.c @@ -725,6 +725,7 @@ grub_net_fs_open (struct grub_file *file_out, const char *name) } grub_memcpy (file_out, bufio, sizeof (struct grub_file)); + grub_free (bufio); return GRUB_ERR_NONE; }