From: Vladimir Serbinenko Date: Sun, 25 Jan 2015 12:22:24 +0000 (+0100) Subject: fs/ntfs: Add missing free. X-Git-Tag: 2.02-beta3~508 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc0ecd7104b3420964364b7a01b7dd7141081b9b;p=thirdparty%2Fgrub.git fs/ntfs: Add missing free. Found by: Coverity scan. --- diff --git a/grub-core/fs/ntfs.c b/grub-core/fs/ntfs.c index d3a91f5d7..2cbcb0b78 100644 --- a/grub-core/fs/ntfs.c +++ b/grub-core/fs/ntfs.c @@ -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;