summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fstyp/ext2fs.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-01-20 20:42:55 +0000
committertrasz <trasz@FreeBSD.org>2015-01-20 20:42:55 +0000
commit1444c0c436ce1ab5136cbbdb015aabcc6ae5a251 (patch)
tree56f3179425e49812e1a803856a5afac1b1bcb311 /usr.sbin/fstyp/ext2fs.c
parent8a23a0c9e7e504d0c050b097991c204513399954 (diff)
downloadFreeBSD-src-1444c0c436ce1ab5136cbbdb015aabcc6ae5a251.zip
FreeBSD-src-1444c0c436ce1ab5136cbbdb015aabcc6ae5a251.tar.gz
MFC r276704:
Fix memory leaks. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/fstyp/ext2fs.c')
-rw-r--r--usr.sbin/fstyp/ext2fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/fstyp/ext2fs.c b/usr.sbin/fstyp/ext2fs.c
index df9e66e..09336e5 100644
--- a/usr.sbin/fstyp/ext2fs.c
+++ b/usr.sbin/fstyp/ext2fs.c
@@ -85,6 +85,7 @@ fstyp_ext2fs(FILE *fp, char *label, size_t size)
}
strlcpy(label, s_volume_name, size);
+ free(fs);
return (0);
}
OpenPOWER on IntegriCloud