commit a8e935ee77b243e82efa8665a8568b0ddcdf1161 parent 8364807938b466fee9a4e5291784b4dd2c71cee1 Author: James Prestwood <prestwoj@gmail.com> Date: Wed, 16 Oct 2019 15:29:47 -0700 crypto: fix potential memory leak Diffstat:
| M | src/crypto.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/crypto.c b/src/crypto.c @@ -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; }