libvirt.c: Added support for memory allocation