summaryrefslogtreecommitdiff
path: root/sys/fs/udf/udf_vfsops.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2004-03-30 05:01:48 +0000
committerScott Long <scottl@FreeBSD.org>2004-03-30 05:01:48 +0000
commit744bb56d95bb10ecf2663caff9b1ad66afe533bf (patch)
tree57fd663689d324e2c1da8d62671c3b4a3551e172 /sys/fs/udf/udf_vfsops.c
parent0b42be7cb79476f31e08bc28ea51d208a120c2f2 (diff)
Notes
Diffstat (limited to 'sys/fs/udf/udf_vfsops.c')
-rw-r--r--sys/fs/udf/udf_vfsops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index 0c093d6f1d24..4718df00feac 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -778,6 +778,8 @@ udf_find_partmaps(struct udf_mnt *udfmp, struct logvol_desc *lvd)
*/
if ((error = udf_readlblks(udfmp, pms->st_loc[0], pms->st_size,
&bp)) != 0) {
+ if (bp != NULL)
+ brelse(bp);
printf("Failed to read Sparing Table at sector %d\n",
pms->st_loc[0]);
return (error);