libvmi/libvmi — pull request #225 by tklengyel (2014-11-27 15:53:57+00:00)
Title: Fix memory leak on error condition in events init

When an error occurs xen_events_destroy is called. However, the xen_events structure is only assigned if no errors occured, thus the structure leaks memory when we have an error.

This is Coverity ID 54272 Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In xen_events_init: Leak of memory or pointers to system resources (CWE-404)