From 7c6a6e730b2cfb6d3dd9d65291fe10fc51897b64 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Thu, 4 Dec 2014 10:50:55 +0200 Subject: [PATCH] shared/crypto: Fix resource leak Fix leaking fd on exit --- src/shared/crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/crypto.c b/src/shared/crypto.c index 12ca9a71c..7f776745d 100644 --- a/src/shared/crypto.c +++ b/src/shared/crypto.c @@ -594,6 +594,8 @@ static bool aes_cmac(struct bt_crypto *crypto, uint8_t key[16], uint8_t *msg, swap_buf(out, res, 16); + close(fd); + return true; } -- 2.47.3