diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c index f6ae1b2f2724..4e9b23d2bfeb 100644 --- a/sys/fs/ntfs/ntfs_vfsops.c +++ b/sys/fs/ntfs/ntfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ntfs_vfsops.c,v 1.37 2006/02/21 04:32:39 thorpej Exp $ */ +/* $NetBSD: ntfs_vfsops.c,v 1.38 2006/04/11 14:12:53 christos Exp $ */ /*- * Copyright (c) 1998, 1999 Semen Ustimenko @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.37 2006/02/21 04:32:39 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.38 2006/04/11 14:12:53 christos Exp $"); #include #include @@ -573,6 +573,12 @@ out: if (bp) brelse(bp); + if (error) { + if (ntmp->ntm_ad) + free(ntmp->ntm_ad, M_NTFSMNT); + free(ntmp, M_NTFSMNT); + } + return (error); }