Fix crash on OOM in xenParseXM handling consoles
Fix crash on OOM in xenParseXM handling consoles

The xenParseXM sets def->nconsoles to 1 before claling
VIR_REALLOC_N on def->consoles. So if the alloc fails
due to OOM, the cleanup code will crash accessing a
console that does not exist.

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

shugaoye/libvirt,eskultety/libvirt,jardasgit/libvirt,andreabolognani/libvirt,nertpinx/libvirt,elmarco/libvirt,cbosdo/libvirt,datto/libvirt,rlaager/libvirt,zippy2/libvirt,datto/libvirt,agx/libvirt,jardasgit/libvirt,jardasgit/libvirt,libvirt/libvirt,VenkatDatta/libvirt,crobinso/libvirt,libvirt/libvirt,agx/libvirt,taget/libvirt,taget/libvirt,eskultety/libvirt,olafhering/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,shugaoye/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,libvirt/libvirt,libvirt/libvirt,nertpinx/libvirt,zippy2/libvirt,VenkatDatta/libvirt,elmarco/libvirt,andreabolognani/libvirt,jfehlig/libvirt,olafhering/libvirt,jardasgit/libvirt,cbosdo/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,agx/libvirt,agx/libvirt,eskultety/libvirt,fabianfreyer/libvirt,zippy2/libvirt,elmarco/libvirt,nertpinx/libvirt,zhlcindy/libvirt-1.1.4-maintain,taget/libvirt,rlaager/libvirt,taget/libvirt,nertpinx/libvirt,cbosdo/libvirt,jfehlig/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,jfehlig/libvirt,crobinso/libvirt,rlaager/libvirt,andreabolognani/libvirt,olafhering/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,crobinso/libvirt,fabianfreyer/libvirt,olafhering/libvirt,elmarco/libvirt,andreabolognani/libvirt,nertpinx/libvirt,rlaager/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,crobinso/libvirt,zippy2/libvirt,jfehlig/libvirt,datto/libvirt,taget/libvirt,eskultety/libvirt,eskultety/libvirt,agx/libvirt