diff options
author | robi <robi> | 2011-05-30 22:13:12 +0000 |
---|---|---|
committer | robi <robi> | 2011-05-30 22:13:12 +0000 |
commit | 19b5f1e0a61d9a7e62cc93f17b276f98cc87a1aa (patch) | |
tree | afe6821fa9629633cc6add23874d441f4b2bace2 /src/block.c | |
parent | 7c887a9e437e5e842a1ad0450101ee99be7ed626 (diff) |
memory leak ext4
Diffstat (limited to 'src/block.c')
-rw-r--r-- | src/block.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/block.c b/src/block.c index 66bad23..f07e0bc 100644 --- a/src/block.c +++ b/src/block.c @@ -79,7 +79,9 @@ struct ext2_extent_handle { struct extent_path *path; }; -// Leave the inode intact because it was allocated by new (C++) + + +// Leave the inode intact void local_ext2fs_extent_free(ext2_extent_handle_t handle) { int i; @@ -87,10 +89,10 @@ void local_ext2fs_extent_free(ext2_extent_handle_t handle) if (!handle) return; - //if (handle->inode) - // ext2fs_free_mem(&handle->inode); +// if (handle->inode) +// ext2fs_free_mem(&handle->inode); if (handle->path) { - for (i=1; i < handle->max_depth; i++) { + for (i=1; i <= handle->max_depth; i++) { if (handle->path[i].buf) ext2fs_free_mem(&handle->path[i].buf); } |