Fix CID issues

Fixed CID issues:
- CID 1049231: init start_key_added with false 
- CID 1049220: fix ressource leak
- CID 1049219: fix another ressource leak
- CID 1049217: fix resource leak, delete before new()
- CID 1049216: fix resource leak, delete before new()
- CID 1049215: fix resource leak, delete rop at end of function
- CID 1049214: fix resource leak, delete op at end of function
- CID 1049213: fix resource leak, delete 'rop' at end of function