diff options
-rw-r--r-- | net/sched/act_bpf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sched/act_bpf.c b/net/sched/act_bpf.c index 1d56903fd4c7..1df78289e248 100644 --- a/net/sched/act_bpf.c +++ b/net/sched/act_bpf.c | |||
@@ -339,6 +339,9 @@ static void tcf_bpf_cleanup(struct tc_action *act, int bind) | |||
339 | bpf_prog_put(prog->filter); | 339 | bpf_prog_put(prog->filter); |
340 | else | 340 | else |
341 | bpf_prog_destroy(prog->filter); | 341 | bpf_prog_destroy(prog->filter); |
342 | |||
343 | kfree(prog->bpf_ops); | ||
344 | kfree(prog->bpf_name); | ||
342 | } | 345 | } |
343 | 346 | ||
344 | static struct tc_action_ops act_bpf_ops __read_mostly = { | 347 | static struct tc_action_ops act_bpf_ops __read_mostly = { |