mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
unit: Fix memory leak
This commit is contained in:
parent
52ee52f467
commit
9ab468b1c0
@ -332,6 +332,8 @@ static void ptk_test(const void *data)
|
|||||||
if (test->tk)
|
if (test->tk)
|
||||||
assert(!memcmp(test->tk, ptk->tk,
|
assert(!memcmp(test->tk, ptk->tk,
|
||||||
crypto_cipher_key_len(test->cipher)));
|
crypto_cipher_key_len(test->cipher)));
|
||||||
|
|
||||||
|
l_free(ptk);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
Loading…
Reference in New Issue
Block a user