提交 802e2df9 编写于 作者: M Matthias Bolte

daemon: Don't try to free an unsigned int in error paths

上级 56eb2081
......@@ -3681,7 +3681,7 @@ remoteDispatchListNetworks(struct qemud_server *server ATTRIBUTE_UNUSED,
cleanup:
if (rv < 0) {
remoteDispatchError(rerr);
VIR_FREE(ret->names.names_len);
VIR_FREE(ret->names.names_val);
}
return rv;
}
......@@ -4200,7 +4200,7 @@ remoteDispatchListInterfaces(struct qemud_server *server ATTRIBUTE_UNUSED,
cleanup:
if (rv < 0) {
remoteDispatchError(rerr);
VIR_FREE(ret->names.names_len);
VIR_FREE(ret->names.names_val);
}
return rv;
}
......@@ -4275,7 +4275,7 @@ remoteDispatchListDefinedInterfaces(struct qemud_server *server ATTRIBUTE_UNUSED
cleanup:
if (rv < 0) {
remoteDispatchError(rerr);
VIR_FREE(ret->names.names_len);
VIR_FREE(ret->names.names_val);
}
return rv;
}
......@@ -8544,7 +8544,7 @@ remoteDispatchListNwfilters(struct qemud_server *server ATTRIBUTE_UNUSED,
cleanup:
if (rv < 0) {
remoteDispatchError(rerr);
VIR_FREE(ret->names.names_len);
VIR_FREE(ret->names.names_val);
}
return rv;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册