diff -Naur grub-2.00/grub-core/gfxmenu/icon_manager.c grub-new/grub-core/gfxmenu/icon_manager.c --- grub-2.00/grub-core/gfxmenu/icon_manager.c 2012-02-08 16:41:41.000000000 +0400 +++ grub-new/grub-core/gfxmenu/icon_manager.c 2013-03-07 12:50:15.805798204 +0400 @@ -213,6 +213,7 @@ icondir = grub_env_get ("icondir"); if (icondir) icon = try_loading_icon (mgr, icondir, class_name); + grub_free(icondir); } /* No icon was found. */