freebsd-skq/lib/libufs
markj 65a57d392f Fix a memory leak introduced in r328426.
ffs_sbget() may return a superblock buffer even if it fails, so the
caller must be prepared to free it in this case. Moreover, when tasting
alternate superblock locations in a loop, ffs_sbget()'s readfunc
callback must free the previously allocated buffer.

Reported and tested by:	pho
Reviewed by:		kib (previous version)
Differential Revision:	https://reviews.freebsd.org/D14390
2018-02-16 15:41:03 +00:00
..
block.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
bread.3
cgread.3 Fix punctuation. 2018-02-02 00:01:50 +00:00
cgroup.c Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
inode.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libufs.3 Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
libufs.h Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
Makefile Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
sblock.c Fix a memory leak introduced in r328426. 2018-02-16 15:41:03 +00:00
sbread.3 Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
type.c Missing disk close in libufs. 2017-12-26 23:16:11 +00:00
ufs_disk_close.3