[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
Branch: 	RHEL5
Changes by:	lhh sourceware org	2007-07-30 20:37:08

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

Log message:
	Fix memory leak.

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

--- cluster/fence/agents/xvm/virt.c	2007/07/30 16:14:18	1.3.2.1
+++ cluster/fence/agents/xvm/virt.c	2007/07/30 20:37:08	1.3.2.2
@@ -104,6 +104,8 @@
 		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 */


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