]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 25 Oct 2011 22:29:46 +0000 (00:29 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 25 Oct 2011 22:29:46 +0000 (00:29 +0200)
ChangeLog
grub-core/fs/ntfs.c

index 9f05edaa20351fdf213b07ae806f3743a726c318..3b0b4697a23cfe620294866b42f98b25579f2b58 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
+
 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
index 5d128bcc0b2de15492ac42bee64ed253fcbf9c84..6b8455c345331249125f3c92e0cc6e574c1db4d1 100644 (file)
@@ -1087,14 +1087,15 @@ grub_ntfs_uuid (grub_device_t device, char **uuid)
       if (*uuid)
        for (ptr = *uuid; *ptr; ptr++)
          *ptr = grub_toupper (*ptr);
+      free_file (&data->mmft);
+      free_file (&data->cmft);
+      grub_free (data);
     }
   else
     *uuid = NULL;
 
   grub_dl_unref (my_mod);
 
-  grub_free (data);
-
   return grub_errno;
 }