Fix memory leak on stratum share submission.