[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/fence/agents/xvm virt.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh sourceware org	2007-07-30 20:41:44

Modified files:
	fence/agents/xvm: virt.c 

Log message:
	Fix #250152

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/virt.c.diff?cvsroot=cluster&r1=1.3&r2=1.4

--- cluster/fence/agents/xvm/virt.c	2006/11/03 15:58:56	1.3
+++ cluster/fence/agents/xvm/virt.c	2007/07/30 20:41:44	1.4
@@ -104,10 +104,13 @@
 		strncpy(vl->vm_states[x].v_uuid, d_uuid, MAX_DOMAINNAME_LENGTH);
 		vl->vm_states[x].v_state.s_state = d_info.state;
 		vl->vm_states[x].v_state.s_owner = my_id;
+
+		virDomainFree(dom);
 	}
 
 	/* We have all the locally running domains & states now */
 	/* Sort */
+	free(d_ids);
 	qsort(&vl->vm_states[0], vl->vm_count, sizeof(vl->vm_states[0]),
 	      _compare_virt);
 	return vl;	


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]