Fix some memory leaks in Ceph

Here some patches to fix memory leaks in Ceph found by cppcheck. Patches already send to the ceph-ML (contains fixed version of patch 5/6). 

Please pull from wip-da-sca-memleaks.