Kernel/heap - Fixed memory leak, clean up pointer arithmatic

UCC git Repository :: git.ucc.asn.au