Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- lib/ext2fs/icount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ext2fs/icount.c b/lib/ext2fs/icount.c index a3b20f0..7d1b3d5 100644 --- a/lib/ext2fs/icount.c +++ b/lib/ext2fs/icount.c @@ -198,6 +198,7 @@ errcode_t ext2fs_create_icount_tdb(ext2_filsys fs, char *tdb_dir, fd = mkstemp(fn); if (fd < 0) { retval = errno; + ext2fs_free_mem(&fn); goto errout; } umask(save_umask); @@ -216,6 +217,7 @@ errcode_t ext2fs_create_icount_tdb(ext2_filsys fs, char *tdb_dir, close(fd); if (icount->tdb == NULL) { retval = errno; + ext2fs_free_mem(&fn); goto errout; } *ret = icount; -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html