]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
grub-macbless: Fix resource leak.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 26 Jan 2015 08:55:58 +0000 (09:55 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 26 Jan 2015 08:55:58 +0000 (09:55 +0100)
Found by: Coverity scan.

util/grub-macbless.c

index 742353a421402a6a42db5938b8ce1040a1287b48..e57e13d5a49af9fe917dc1b1068a428cdb44fafe 100644 (file)
@@ -92,6 +92,8 @@ bless (const char *path, int x86)
   free (filebuf_via_grub);
   free (filebuf_via_sys);
   free (drive_name);
+  free (devices);
+  grub_device_close (dev);
 }
 
 static struct argp_option options[] = {