commit | 5482e9a93c83839f94e75db712e6837e6a39962c | [log] [tgz] |
---|---|---|
author | Martin KaFai Lau <kafai@fb.com> | Sat Dec 01 17:08:44 2018 -0800 |
committer | Alexei Starovoitov <ast@kernel.org> | Sun Dec 02 09:12:58 2018 -0800 |
tree | 4a6563610f69436aa35887e450992e7fb8a941d9 | |
parent | 71fc156ff5361beb1fb4c519add1f1ebda33ff13 [diff] |
bpf: Fix memleak in aux->func_info and aux->btf The aux->func_info and aux->btf are leaked in the error out cases during bpf_prog_load(). This patch fixes it. Fixes: ba64e7d85252 ("bpf: btf: support proper non-jit func info") Cc: Yonghong Song <yhs@fb.com> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>