block: rbd: fixed may leaks
rbd_client_create() doesn't free rbdc, this leads to many leaks. seg_len in rbd_do_op() is unsigned, so (seg_len < 0) makes no sense. Also if fixed check fails then seg_name is leaked. Signed-off-by: NVasiliy Kulikov <segooon@gmail.com> Signed-off-by: NYehuda Sadeh <yehuda@hq.newdream.net>
Showing
想要评论请 注册 或 登录