diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c index cd77e334e5777d1b6d1fcacf795b132182775973..8345ff4acedf2cefcff080d178e2865f4dbdc967 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 @@ -283,6 +284,7 @@ static int __test__bpf(int idx) } out: + free(obj_buf); bpf__clear(); return ret; }