e2fsprogs/lib/ext2fs
Brian Behlendorf f93625b292 [COVERITY] Fix (error case) memory leak in libext2fs (ext2fs_image_inode_write)
Use pre-existing early exit label in function to handle proper
error code return and local memory allocation cleanup.

Coverity ID: 23: Resource Leak

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2007-03-21 17:43:37 -04:00
..
ChangeLog [COVERITY] Fix (error case) memory leak in libext2fs (ext2fs_image_inode_write) 2007-03-21 17:43:37 -04:00
Makefile.in Check in ext4 extent headers into the source tree 2006-11-12 22:54:35 -05:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
alloc.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
alloc_sb.c Add support for on-line resizing ala the resize inode. This patch 2004-12-15 14:39:16 -05:00
alloc_stats.c Fix bug where ext2fs_mkdir wasn't correctly bumping the number of 2002-02-03 01:28:52 -05:00
alloc_tables.c Create new ext2fs library inlines: ext2fs_group_{first,last}_block() 2006-09-12 14:56:16 -04:00
badblocks.c Fix type punning bugs in ext2fs_get_mem() and ext2fs_free_mem() 2006-11-14 00:34:34 -05:00
bb_compat.c Many files: 2001-05-14 11:35:52 +00:00
bb_inode.c Add fs->now to override time(0) in libext2fs 2005-09-24 20:14:51 -04:00
bitmaps.c Detect overflows in loop counters 2006-08-30 02:16:55 -04:00
bitops.c Change the function prototypes of ext2fs_set_bit, ext2fs_clear_bit, and 2005-06-30 19:40:18 -04:00
bitops.h Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
block.c Fix resize inode handling on big endian systems, by adding new routines 2005-01-06 00:04:24 -05:00
bmap.c ext2fs.h (BMAP_SET), bmap.c (ext2fs_bmap): Add support for new 2004-12-23 13:55:34 -05:00
bmove.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
brel.h Many files: 2001-01-11 04:54:39 +00:00
brel_ma.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
check_desc.c Create new ext2fs library inlines: ext2fs_group_{first,last}_block() 2006-09-12 14:56:16 -04:00
closefs.c Remove unused variables 2006-09-12 14:56:12 -04:00
cmp_bitmaps.c Many files: 2001-05-14 11:35:52 +00:00
dblist.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
dblist_dir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
dir_iterate.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
dirblock.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
dirhash.c Add directory hashed signed/unsigned hint to superblock 2006-11-11 22:32:35 -05:00
dosio.c ChangeLog, wordwrap.pl: 2001-06-01 23:49:46 +00:00
dosio.h Many files: 1997-08-11 20:29:22 +00:00
dupfs.c dupfs.c (ext2fs_dup_handle): Make sure the new filesystem handle 2005-01-05 03:16:09 -05:00
e2image.h Many files: 2001-05-03 04:02:29 +00:00
expanddir.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
ext2_err.et.in ext2fs.h (BMAP_SET), bmap.c (ext2fs_bmap): Add support for new 2004-12-23 13:55:34 -05:00
ext2_ext_attr.h Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
ext2_fs.h Fix (as yet unused) struct ext4_group_desc to add a missing bg_pad field 2006-11-30 14:48:48 -05:00
ext2_io.h Add IO_FLAG_EXCLUSIVE flag to io_channel abstraction 2006-03-18 18:57:44 -05:00
ext2_types.h.in Fix asm_types.h type conflicts 2006-04-09 08:41:55 -04:00
ext2fs.h Fix type punning bugs in ext2fs_get_mem() and ext2fs_free_mem() 2006-11-14 00:34:34 -05:00
ext2fs.pc.in Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
ext2fsP.h Add support to e2fsck to reindex directories to use hash trees. 2002-07-20 00:28:07 -04:00
ext3_extents.h Check in ext4 extent headers into the source tree 2006-11-12 22:54:35 -05:00
ext_attr.c Add library support for large (EA in inode) inodes. Make sure that garbage 2005-01-25 23:42:56 -05:00
fileio.c Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
finddev.c finddev.c (scan_dir): Fix memory leak; we weren't calling 2001-07-29 12:01:09 -04:00
flushb.c Re-add FreeBSD support. 2003-12-28 18:21:26 +01:00
freefs.c Add support for passing options to the io layer using the URL syntax. For 2004-11-30 14:07:11 -05:00
gen_bitmap.c ChangeLog, Makefile.in, bitops.h, gen_bitmap.c: 2001-06-11 15:17:45 +00:00
get_pathname.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
getsectsize.c getsectsize.c (BLKSSZGET): Clean up test for when to manually 2005-06-19 23:11:09 -04:00
getsize.c Check for potential 64-bit overflow in ext2fs_get_device_size() 2006-10-02 09:30:41 -04:00
icount.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
imager.c [COVERITY] Fix (error case) memory leak in libext2fs (ext2fs_image_inode_write) 2007-03-21 17:43:37 -04:00
ind_block.c Add missing return values in error return cases in the ext2fs library. 2005-04-09 01:21:21 -04:00
initialize.c Add directory hashed signed/unsigned hint to superblock 2006-11-11 22:32:35 -05:00
inline.c Many files: 2001-05-14 11:35:52 +00:00
inode.c [COVERITY] Fix (error case) memory leak in libext2fs (ext2fs_write_inode_full) 2007-03-21 17:38:47 -04:00
inode_io.c Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
io_manager.c Add support for passing options to the io layer using the URL syntax. For 2004-11-30 14:07:11 -05:00
irel.h Many files: 2001-01-11 04:54:39 +00:00
irel_ma.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
ismounted.c Fix non-Linux compiler warning (missing return statement). 2006-05-30 16:28:22 +02:00
jfs_compat.h Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
jfs_dat.h ChangeLog, Makefile.in, ext2_err.et.in, ext2fs.h, jfs_dat.h, mkjournal.c: 2000-10-24 18:33:16 +00:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
kernel-jbd.h Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
kernel-list.h Lots of small random portability fixes to make e2fsprogs build 2002-02-12 02:34:44 -05:00
link.c link.c (ext2fs_link): When adding a new link to a directory, 2002-07-29 19:26:33 -04:00
llseek.c On non-linux systems, use lseek64() if it is present in 2004-09-17 17:47:12 -04:00
lookup.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
mkdir.c Add fs->now to override time(0) in libext2fs 2005-09-24 20:14:51 -04:00
mkjournal.c Fix ext2fs_add_journal_inode() when filesystem is opened in exclusive mode 2006-04-04 19:23:41 -04:00
namei.c Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
native.c ChangeLog, Makefile.in, swapfs.c, unix.c: 2001-06-11 07:00:04 +00:00
newdir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
nt_io.c Many files: 2001-05-14 11:35:52 +00:00
openfs.c Allow debugfs and dumpe2fs to support fs features under development 2006-11-12 23:26:46 -05:00
read_bb.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
read_bb_file.c Fix various gcc -Wall complaints. 2005-12-10 21:50:30 -05:00
res_gdt.c Fix various gcc -Wall complaints. 2005-12-10 21:50:30 -05:00
rs_bitmap.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
rw_bitmaps.c Add support for EXT2_FEATURE_COMPAT_LAZY_BG 2006-05-08 20:17:26 -04:00
sparse.c Add support for on-line resizing ala the resize inode. This patch 2004-12-15 14:39:16 -05:00
swapfs.c Add directory hashed signed/unsigned hint to superblock 2006-11-11 22:32:35 -05:00
test_io.c Fix false positives from valgrind: prctl(PR_GET_DUMPABLE) 2005-07-25 11:36:43 -05:00
tst_badblocks.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_bitops.c Fix the i386 bitmap operations so they are 32-bit clean 2006-03-25 13:42:45 -05:00
tst_byteswap.c Fix various gcc -Wall complaints. 2002-03-07 23:52:56 -05:00
tst_getsectsize.c mke2fs.c (PRS, set_fs_defaults): If the sector size of the 2003-05-21 17:28:29 -04:00
tst_getsize.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_iscan.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_types.c Fix asm_types.h type conflicts 2006-04-09 08:41:55 -04:00
unix_io.c Allow unix_io offsets greater than 2G 2006-11-12 10:40:40 -05:00
unlink.c Ex2fs_unlink() will return an error if both the name and inode number are 2005-01-07 22:09:49 -05:00
valid_blk.c valid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which 2002-08-20 01:14:30 -04:00
version.c Update version to 1.36-rc1, and change parsing algorithm for version strings 2005-01-06 23:52:45 -05:00
write_bb_file.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00