]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 1 May 2012 13:03:27 +0000 (15:03 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 1 May 2012 13:03:27 +0000 (15:03 +0200)
ChangeLog
grub-core/fs/fshelp.c

index 0de79413df027707ac26d9952900845570829353..1e37c0a59b37860b0f04594a1f5ee06f0188d236 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
+
 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
index fa2c8bef5c1bb6e29c7c75947d0a157c74eaa378..5a2e0ff2b4f6f039465679e4b2ec699c7eeda99b 100644 (file)
@@ -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;