mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
daemon: Don't try to free an unsigned int in error paths
This commit is contained in:
parent
56eb2081f5
commit
802e2df9a3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user