From ddc583571eb759c81c8ec33209d5cce11898bebe Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 1 May 2012 15:03:27 +0200 Subject: [PATCH] * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak. --- ChangeLog | 4 ++++ grub-core/fs/fshelp.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0de79413d..1e37c0a59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-05-01 Vladimir Serbinenko + + * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak. + 2012-05-01 Vladimir Serbinenko * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard diff --git a/grub-core/fs/fshelp.c b/grub-core/fs/fshelp.c index fa2c8bef5..5a2e0ff2b 100644 --- a/grub-core/fs/fshelp.c +++ b/grub-core/fs/fshelp.c @@ -136,6 +136,7 @@ grub_fshelp_find_file (const char *path, grub_fshelp_node_t rootnode, found = iterate_dir (currnode, iterate); if (! found) { + free_node (currnode); if (grub_errno) return grub_errno;