mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
Avoid another leak in src/xend_internal.c
* src/xend_internal.c: in xenDaemonLookupByID() if virGetDomain fails free up the name
This commit is contained in:
parent
657326cfe3
commit
6fcac926fb
@ -3975,9 +3975,11 @@ xenDaemonLookupByUUID(virConnectPtr conn, const unsigned char *uuid)
|
||||
return (NULL);
|
||||
|
||||
ret = virGetDomain(conn, name, uuid);
|
||||
if (ret == NULL) return NULL;
|
||||
if (ret == NULL) goto cleanup;
|
||||
|
||||
ret->id = id;
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(name);
|
||||
return (ret);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user