Modify memory cleanup to use Owned object.
Modify memory cleanup to use Owned object.

Signed-off-by: Gleb Aronsky <9746c29e6ed593f1e1ccbe1aacaf8f0320155813@lexisnexis.com>

afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform,afishbeck/HPCC-Platform