From 9ab468b1c0c7a9728bb8c269e155925e1f87ace8 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sat, 27 Dec 2014 23:36:12 -0600 Subject: [PATCH] unit: Fix memory leak --- unit/test-crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unit/test-crypto.c b/unit/test-crypto.c index 6648e8de..6920aa6d 100644 --- a/unit/test-crypto.c +++ b/unit/test-crypto.c @@ -332,6 +332,8 @@ static void ptk_test(const void *data) if (test->tk) assert(!memcmp(test->tk, ptk->tk, crypto_cipher_key_len(test->cipher))); + + l_free(ptk); } int main(int argc, char *argv[])