commit | 827f6f1714ec4e990d009a21e0a0700416e20f83 | [log] [tgz] |
---|---|---|
author | Inbar Anson Bratspiess <inbar.anson.bratspiess@330plus.net> | Thu Feb 06 14:37:15 2020 +0200 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Mon Feb 10 12:33:22 2020 +0200 |
tree | 4a3ced36b3e1ee31ed5168ad0e0a07928025ddfb | |
parent | b05e72f3bb238a2dbd589052d52eaac0dd741217 [diff] |
net: socket: Release fd on failure in accept() The zsock_accept_ctx() calls z_reserve_fd() on entry but fails to call z_free_fd() on failure. This will leak the allocated socket descriptor. Fixes #22366 Signed-off-by: Inbar Anson Bratspiess <inbar.anson.bratspiess@330plus.net>