Merge branch 'Fix resource leaks in test_maps'
authorMartin KaFai Lau <martin.lau@kernel.org>
Thu, 22 Sep 2022 23:11:35 +0000 (16:11 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 22 Sep 2022 23:41:28 +0000 (16:41 -0700)
commitee9bb9b4459ab7e27de9c9f91773ade2909c6375
treec54832297ee526b06e635e3b6fb1345d83913689
parentb780d1671cf933caa3f67160f73261f10750f1a9
parent103d002fb7d548fb1187e350f2b73788558128b9
Merge branch 'Fix resource leaks in test_maps'

Hou Tao says:

====================

From: Hou Tao <houtao1@huawei.com>

Hi,

It is just a tiny patch set aims to fix the resource leaks in test_maps
after test case succeeds or is skipped. And these leaks are spotted by
using address sanitizer and checking the content of /proc/$pid/fd.

Please see indiviual patch for more details.

Change Log:
v2:
 * Add the missing header file unistd.h for close() (From kernel-patches/bpf)
   The reason Why I miss that is that -Werror is removed from Makefile
   when enabling clang address sanitizer.

v1:
 * https://lore.kernel.org/bpf/20220921025855.115463-1-houtao@huaweicloud.com/T/
====================

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>