Messages in this thread | | | Date | Wed, 22 Jul 2020 18:10:43 -0700 (PDT) | Subject | Re: [PATCH][next] ionic: fix memory leak of object 'lid' | From | David Miller <> |
| |
From: Colin King <colin.king@canonical.com> Date: Wed, 22 Jul 2020 18:40:03 +0100
> From: Colin Ian King <colin.king@canonical.com> > > 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>
Applied.
| |