mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
util: Plug memory leak on virNetDevMacVLanCreateWithVPortProfile() error path
Detected by Coverity. Leak introduced in commit 90074ec
.
Signed-off-by: Alex Jia <ajia@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
5483e5736d
commit
4c8327994c
@ -582,6 +582,9 @@ create_name:
|
||||
virNetDevError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("cannot set bandwidth limits on %s"),
|
||||
cr_ifname);
|
||||
if (withTap)
|
||||
VIR_FORCE_CLOSE(rc); /* sets rc to -1 */
|
||||
else
|
||||
rc = -1;
|
||||
goto disassociate_exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user