]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fs/ntfs: Add missing free.
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 25 Jan 2015 12:22:24 +0000 (13:22 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sun, 25 Jan 2015 19:32:31 +0000 (20:32 +0100)
Found by: Coverity scan.

grub-core/fs/ntfs.c

index d3a91f5d791ec9bbb10a506d0a761e23498b0857..2cbcb0b78d0dca99edc9b048706b7192c9344d8b 100644 (file)
@@ -618,7 +618,10 @@ list_file (struct grub_ntfs_file *diro, grub_uint8_t *pos,
 
          ustr = get_utf8 (np, ns);
          if (ustr == NULL)
-           return 0;
+           {
+             grub_free (fdiro);
+             return 0;
+           }
           if (namespace)
             type |= GRUB_FSHELP_CASE_INSENSITIVE;