mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +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 */
|
||||
|
||||
char *physfndev;
|
||||
char *physfndev = NULL;
|
||||
unsigned char hostuuid[VIR_UUID_BUFLEN];
|
||||
int32_t vf;
|
||||
bool nltarget_kernel = true;
|
||||
@ -1059,6 +1059,7 @@ doPortProfileOp8021Qbh(const char *ifname,
|
||||
}
|
||||
|
||||
err_exit:
|
||||
VIR_FREE(physfndev);
|
||||
|
||||
# endif /* IFLA_VF_PORT_MAX */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user