
On Mon, Apr 02, 2018 at 09:06:12AM -0400, John Ferlan wrote:
There's no need to check if @dom exists before trying to call virDomainObjListRemove since it must exist due to prior checks.
Additionally, if we do remove the @dom, then set it to NULL so that the virObjectUnlock isn't referencing something that is deleted.
Signed-off-by: John Ferlan <jferlan@redhat.com> --- src/uml/uml_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|