assert(events);
+ DBG2("Agent listing events for domain %d", domain);
+
nbmem = UST_APP_EVENT_LIST_SIZE;
tmp_events = zmalloc(nbmem * sizeof(*tmp_events));
if (!tmp_events) {
ret = agent_init(agt);
if (ret < 0) {
free(agt);
+ agt = NULL;
goto error;
}