util/grub-mount: fix descriptor leak.

Found by: Coverity scan.
This commit is contained in:
Andrei Borzenkov 2015-01-26 22:24:28 +03:00
parent bd4e20eedf
commit 1a87156e01

View file

@ -516,6 +516,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
return 0; return 0;
} }
grub_zfs_add_key (buf, real_size, 0); grub_zfs_add_key (buf, real_size, 0);
fclose (f);
} }
return 0; return 0;