3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 22:19:23 +01:00

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

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)) { if (!l_checksum_updatev(hmac, iov, num_args)) {
l_checksum_free(hmac);
va_end(va); va_end(va);
return false; return false;
} }