* [PATCH] shared/crypto: Fix resource leak
@ 2014-12-04 8:50 Andrei Emeltchenko
2014-12-04 9:13 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Andrei Emeltchenko @ 2014-12-04 8:50 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
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 12ca9a7..7f77674 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;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-04 9:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 8:50 [PATCH] shared/crypto: Fix resource leak Andrei Emeltchenko
2014-12-04 9:13 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).