]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libhandle: Fix handle leak in path_to_fshandle error paths
authorEric Sandeen <sandeen@redhat.com>
Mon, 15 Sep 2014 23:19:08 +0000 (09:19 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 15 Sep 2014 23:19:08 +0000 (09:19 +1000)
commit8f1c8e13fc8db6e7879a8372e33b8720d4de7b9e
treeacf3d61908b60a4ee23662c12465466bd95d1b20
parente3e2793db20651c1a0f34f0986f58f85c38afb68
libhandle: Fix handle leak in path_to_fshandle error paths

path_to_fshandle calls obj_to_handle, which potentially allocates a
handle, but the handle isn't freed on a subsequent error path.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libhandle/handle.c