]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix memory leak
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 1 Sep 2010 07:34:09 +0000 (09:34 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 1 Sep 2010 07:34:09 +0000 (09:34 +0200)
grub-core/commands/efi/lsefisystab.c

index 90f7bf0d1f53840c9937d9795415cc46126e8aa4..ac84fc426583692c9462ae20dd2656339283d0ea 100644 (file)
@@ -63,6 +63,7 @@ grub_cmd_lsefisystab (struct grub_command *cmd __attribute__ ((unused)),
     *grub_utf16_to_utf8 ((grub_uint8_t *) vendor, st->firmware_vendor,
                         vendor_utf16 - st->firmware_vendor) = 0;
     grub_printf ("%s", vendor);
+    grub_free (vendor);
   }
 
   grub_printf (", Version=%x\n", st->firmware_revision);