mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
qemuProcessHandleGraphics: no need to check for NULL
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
0e7549fe47
commit
82bda55e2f
@ -1105,24 +1105,20 @@ qemuProcessHandleGraphics(qemuMonitorPtr mon G_GNUC_UNUSED,
|
||||
return 0;
|
||||
|
||||
error:
|
||||
if (localAddr) {
|
||||
VIR_FREE(localAddr->service);
|
||||
VIR_FREE(localAddr->node);
|
||||
VIR_FREE(localAddr);
|
||||
}
|
||||
if (remoteAddr) {
|
||||
VIR_FREE(remoteAddr->service);
|
||||
VIR_FREE(remoteAddr->node);
|
||||
VIR_FREE(remoteAddr);
|
||||
}
|
||||
if (subject) {
|
||||
for (i = 0; i < subject->nidentity; i++) {
|
||||
VIR_FREE(subject->identities[i].type);
|
||||
VIR_FREE(subject->identities[i].name);
|
||||
}
|
||||
VIR_FREE(subject->identities);
|
||||
VIR_FREE(subject);
|
||||
VIR_FREE(localAddr->service);
|
||||
VIR_FREE(localAddr->node);
|
||||
VIR_FREE(localAddr);
|
||||
|
||||
VIR_FREE(remoteAddr->service);
|
||||
VIR_FREE(remoteAddr->node);
|
||||
VIR_FREE(remoteAddr);
|
||||
|
||||
for (i = 0; i < subject->nidentity; i++) {
|
||||
VIR_FREE(subject->identities[i].type);
|
||||
VIR_FREE(subject->identities[i].name);
|
||||
}
|
||||
VIR_FREE(subject->identities);
|
||||
VIR_FREE(subject);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user