Release data refs after send
Release objects after being stored in collections
Release of header object after use
Fix complaint of dead store of result
Fix incorrect pointer type assignment complaint