Correct defeatest attitude in crypto_new_cipher_env

svn:r201
This commit is contained in:
Nick Mathewson
2003-03-19 21:27:21 +00:00
parent c741abd3ec
commit ad83f5b97c
+1
View File
@@ -208,6 +208,7 @@ crypto_cipher_env_t *crypto_new_cipher_env(int type)
if (key_len && !(env->key = (unsigned char *)malloc(key_len)))
goto err;
return env;
err:
if (env->key)
free(env->key);