diff options
Diffstat (limited to 'src/lib/libcrypto/aes')
| -rw-r--r-- | src/lib/libcrypto/aes/aes_wrap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/aes/aes_wrap.c b/src/lib/libcrypto/aes/aes_wrap.c index 40533440bf..4a830da7e4 100644 --- a/src/lib/libcrypto/aes/aes_wrap.c +++ b/src/lib/libcrypto/aes/aes_wrap.c | |||
| @@ -164,10 +164,8 @@ AES_wrap_unwrap_test(const unsigned char *kek, int keybits, | |||
| 164 | ret = 1; | 164 | ret = 1; |
| 165 | 165 | ||
| 166 | err: | 166 | err: |
| 167 | if (otmp) | 167 | free(otmp); |
| 168 | free(otmp); | 168 | free(ptmp); |
| 169 | if (ptmp) | ||
| 170 | free(ptmp); | ||
| 171 | 169 | ||
| 172 | return ret; | 170 | return ret; |
| 173 | } | 171 | } |
