Fix deallocation bugs, add return after Error
Fix deallocation bugs, add return after Error

olifre/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,karies/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,olifre/root,olifre/root,karies/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,karies/root,olifre/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,karies/root,karies/root,karies/root,karies/root,olifre/root