Skip to content

Commit

Permalink
util/grub-mount: fix descriptor leak.
Browse files Browse the repository at this point in the history
Found by: Coverity scan.
  • Loading branch information
arvidjaar committed Jan 26, 2015
1 parent bd4e20e commit 1a87156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/grub-mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ argp_parser (int key, char *arg, struct argp_state *state)
return 0;
}
grub_zfs_add_key (buf, real_size, 0);
fclose (f);
}
return 0;

Expand Down

0 comments on commit 1a87156

Please sign in to comment.