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:
Eric Blake 2011-10-13 16:45:58 -06:00
parent 16e7b5fa24
commit 0472f39f8b

View File

@ -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 */