]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: pedit: fix memory leak in print_pedit
authorAndrea Claudi <aclaudi@redhat.com>
Fri, 11 Dec 2020 18:53:03 +0000 (19:53 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 14 Dec 2020 17:24:08 +0000 (09:24 -0800)
commit0d78e8eabf865b47f98adae7c453884bdc19c2f2
treed3cb4a46c0d36c328836772a674e72557f2df5e8
parentec1346acbe9e5f0fe16242fc61b85d81f84ee592
tc: pedit: fix memory leak in print_pedit

keys_ex is dinamically allocated with calloc on line 770, but
is not freed in case of error at line 823.

Fixes: 081d6c310d3a ("tc: pedit: Support JSON dumping")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/m_pedit.c