Ilya Dryomov 3ebe138ac6 rbd: fix double free on rbd_dev->header_name
If rbd_dev_image_probe() in rbd_dev_probe_parent() fails, header_name
is freed twice: once in rbd_dev_probe_parent() and then in its caller
rbd_dev_image_probe() (rbd_dev_image_probe() is called recursively to
handle parent images).

rbd_dev_probe_parent() is responsible for probing the parent, so it
shouldn't muck with clone's fields.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
2015-09-08 23:14:29 +03:00
..
2015-06-26 11:54:29 -07:00
2015-08-17 16:26:30 -07:00
2015-08-21 11:03:06 -07:00
2015-06-13 08:44:14 -07:00
2015-06-26 14:51:15 -07:00
2015-06-23 13:32:38 -07:00
2015-07-23 13:07:04 -07:00
2015-08-23 20:46:22 -07:00
2015-07-02 14:40:49 -07:00
2015-07-24 15:14:04 -06:00
2015-08-13 13:36:22 -07:00