rbd: plug rbd_dev->header.object_prefix memory leak
authorIlya Dryomov <idryomov@gmail.com>
Mon, 31 Aug 2015 15:22:10 +0000 (18:22 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 8 Sep 2015 20:14:30 +0000 (23:14 +0300)
commitd194cd1dd1be61249b08e5461ae8a9c05d1072c9
tree781a4e1639f3ac1dcd40e6e05154ddc9846ef784
parent3ebe138ac642a195c7f2efdb918f464734421fd6
rbd: plug rbd_dev->header.object_prefix memory leak

Need to free object_prefix when rbd_dev_v2_snap_context() fails, but
only if this is the first time we are reading in the header.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/block/rbd.c