Skip to contentSkip to conversation

cluster/cman/cman_tool main.c

Cluster-devel [email protected] 1 participant 1 message Aug 15, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rmccabe at sourceware.org 2007-08-15 19:39:56

Modified files:
cman/cman_tool : main.c

Log message:
Fix a few (harmless) places where memory is allocated but not freed I stumbled onto hunting down something else.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/main.c.diff?cvsroot=cluster&r1=1.52&r2=1.53

cman/cman_tool/main.c +3 -1
@@ -287,7 +287,7 @@
 			printf("\n");
 		}
 	}
-
+	cman_finish(h);
 }
 
 static int node_compare(const void *va, const void *vb)
@@ -413,6 +413,8 @@
 		}
 	}
 	free(nodes);
+	free(dis_nodes);
+	cman_finish(h);
 }
 
 static void show_services(void)