diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c index 33bda9c2654235473fa9a60e2c713542898c19e7..dbf5f5215abeefd83c3dfb094881ec6b480a738d 100644 --- a/tools/perf/tests/bpf.c +++ b/tools/perf/tests/bpf.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include #include +#include #include #include #include @@ -276,6 +277,7 @@ static int __test__bpf(int idx) } out: + free(obj_buf); bpf__clear(); return ret; }