aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/fstyp/ufs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/fstyp/ufs.c')
-rw-r--r--usr.sbin/fstyp/ufs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/fstyp/ufs.c b/usr.sbin/fstyp/ufs.c
index 4002fc89c9ee..e4de1283e769 100644
--- a/usr.sbin/fstyp/ufs.c
+++ b/usr.sbin/fstyp/ufs.c
@@ -53,6 +53,9 @@ fstyp_ufs(FILE *fp, char *label, size_t labelsize)
switch (sbget(fileno(fp), &fs, STDSB)) {
case 0:
strlcpy(label, fs->fs_volname, labelsize);
+ free(fs->fs_csp);
+ free(fs->fs_si);
+ free(fs);
return (0);
case ENOENT:
/* Cannot find file system superblock */