[libvirt] [PATCH 03/12] Split yajl_gen allocation into a separate function.