fix a dangling pointer issue in librbd engine

Signed-off-by: Xan Peng xanpeng@gmail.com