crypto: fix potential memory leak

This commit is contained in:
James Prestwood 2019-10-16 15:29:47 -07:00 committed by Denis Kenzior
parent 8364807938
commit a8e935ee77
1 changed files with 1 additions and 0 deletions

View File

@ -706,6 +706,7 @@ bool hkdf_extract(enum l_checksum_type type, const uint8_t *key,
}
if (!l_checksum_updatev(hmac, iov, num_args)) {
l_checksum_free(hmac);
va_end(va);
return false;
}