Fixed memory leaks in TempHire