Fixed small memory leak in key generation application