diff options
author | john.levon@sun.com <john.levon@sun.com> | 2007-01-16 10:54:20 -0800 |
---|---|---|
committer | john.levon@sun.com <john.levon@sun.com> | 2007-01-16 10:54:20 -0800 |
commit | 96002a7e9b93c9363136534fd1821c5743b323fa (patch) | |
tree | 740de41bac22b17d08f2789da47af84fbcf3a9cf /tools/libfsimage/ext2fs-lib | |
parent | a086d29d0e360e83eafed55959c3e4e2a1340a38 (diff) | |
download | xen-96002a7e9b93c9363136534fd1821c5743b323fa.tar.gz xen-96002a7e9b93c9363136534fd1821c5743b323fa.tar.bz2 xen-96002a7e9b93c9363136534fd1821c5743b323fa.zip |
Remove useless fsip_fs_free(). Delegate freeing of private data to its plugin
users. Miscellaneous tidy.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/libfsimage/ext2fs-lib')
-rw-r--r-- | tools/libfsimage/ext2fs-lib/ext2fs-lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c index b6f60ce65f..aa8e7a63f4 100644 --- a/tools/libfsimage/ext2fs-lib/ext2fs-lib.c +++ b/tools/libfsimage/ext2fs-lib/ext2fs-lib.c @@ -58,9 +58,11 @@ ext2lib_umount(fsi_t *fsi) { ext2_filsys *fs = fsip_fs_data(fsi); if (ext2fs_close(*fs) != 0) { + free(fs); errno = EINVAL; return (-1); } + free(fs); return (0); } |