]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Call dl_free in early exit case
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 14 Feb 2017 05:29:38 +0000 (07:29 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 19 Feb 2017 00:29:56 +0000 (16:29 -0800)
commitb77c77d294959bc8c8ef948fc7849d1794347f8e
tree9db09450d07a93282dadddab0b9643aead5c3a93
parent5e4dc1951ee2420ed40aee21920c1c37b537d4e3
devlink: Call dl_free in early exit case

Prior to parsing command options, the devlink tool allocates memory
to store results. In case of early exit (wrong parameters or version
check), this memory wasn't freed.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
devlink/devlink.c