Fixed memory leak for non-xtest key posting.