Remove a leak.
Tidy up create ops.

Fix a null derefencement.