]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: e_bpf: fix memory leak in parse_bpf()
authorAndrea Claudi <aclaudi@redhat.com>
Mon, 19 Apr 2021 13:36:57 +0000 (15:36 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 27 Apr 2021 04:05:19 +0000 (21:05 -0700)
commit932fe3453f39503b5689912d7e0b01ac2b03e7a0
tree3a56a3ca0c6d3822dbb17dc0bf636cc6f58208fc
parent38ef5bb7b4a7e8b191f4087c140a07a0779fa903
tc: e_bpf: fix memory leak in parse_bpf()

envp_run is dinamically allocated with a malloc, and not freed in the
out: return path. This commit fix it.

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/e_bpf.c