fixed memory leak in SetKey()