提交 0472f39f 编写于 作者: E Eric Blake

macvtap: plug memory leak for 802.1Qbh

Detected by Coverity.  Leak present since commit ca3b22bb.

* src/util/macvtap.c (doPortProfileOp8021Qbh): Release device name.
上级 16e7b5fa
...@@ -993,7 +993,7 @@ doPortProfileOp8021Qbh(const char *ifname, ...@@ -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, ...@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册