libbtrfsutil: fix memory leak in deleted_subvolumes()
authorOmar Sandoval <osandov@fb.com>
Thu, 29 Mar 2018 07:53:54 +0000 (00:53 -0700)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 20:53:57 +0000 (22:53 +0200)
commitf5dd778f5299088f89d380ce922a84d77a98b9d6
treee6483f7dc00525cd12e827201f3aee3d5773351e
parentc41c5b1562c5a628f164a1d3d3d19a9c1f728bdf
libbtrfsutil: fix memory leak in deleted_subvolumes()

If we fail to reallocate the ID array, we still need to free it.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
libbtrfsutil/subvolume.c