summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-07-22 18:40:03 +0100
committerDavid S. Miller <davem@davemloft.net>2020-07-22 18:10:09 -0700
commit4b1debbe63f46f951af81d80c0cc9dd646b6ceb6 (patch)
tree02b9513e968d1dc2cb80e8abbc8bf8c1741679d9 /tools/perf/scripts/python
parentaff598caeda5fbaef5384d6f4d903ad9d9558311 (diff)
ionic: fix memory leak of object 'lid'
Currently when netdev fails to allocate the error return path fails to free the allocated object 'lid'. Fix this by setting err to the return error code and jumping to a new label that performs the kfree of lid before returning. Addresses-Coverity: ("Resource leak") Fixes: 4b03b27349c0 ("ionic: get MTU from lif identity") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions