mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
macvtap: plug memory leak for 802.1Qbh
Detected by Coverity. Leak present since commit ca3b22b
.
* src/util/macvtap.c (doPortProfileOp8021Qbh): Release device name.
This commit is contained in:
parent
16e7b5fa24
commit
0472f39f8b
@ -993,7 +993,7 @@ doPortProfileOp8021Qbh(const char *ifname,
|
|||||||
|
|
||||||
# else /* IFLA_VF_PORT_MAX */
|
# else /* IFLA_VF_PORT_MAX */
|
||||||
|
|
||||||
char *physfndev;
|
char *physfndev = NULL;
|
||||||
unsigned char hostuuid[VIR_UUID_BUFLEN];
|
unsigned char hostuuid[VIR_UUID_BUFLEN];
|
||||||
int32_t vf;
|
int32_t vf;
|
||||||
bool nltarget_kernel = true;
|
bool nltarget_kernel = true;
|
||||||
@ -1059,6 +1059,7 @@ doPortProfileOp8021Qbh(const char *ifname,
|
|||||||
}
|
}
|
||||||
|
|
||||||
err_exit:
|
err_exit:
|
||||||
|
VIR_FREE(physfndev);
|
||||||
|
|
||||||
# endif /* IFLA_VF_PORT_MAX */
|
# endif /* IFLA_VF_PORT_MAX */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user