[Ocfs2-tools-commits] jlbec commits r1176 - trunk/o2cb_ctl

svn-commits@oss.oracle.com svn-commits at oss.oracle.com
Mon Apr 17 16:23:12 CDT 2006


Author: jlbec
Date: 2006-04-17 16:23:12 -0500 (Mon, 17 Apr 2006)
New Revision: 1176

Modified:
   trunk/o2cb_ctl/o2cb_config.c
Log:

Fix bug 636.  The list deletion was half-complete, as GList is a
doubly-linked list.  Bad Joel



Modified: trunk/o2cb_ctl/o2cb_config.c
===================================================================
--- trunk/o2cb_ctl/o2cb_config.c	2006-03-29 01:30:12 UTC (rev 1175)
+++ trunk/o2cb_ctl/o2cb_config.c	2006-04-17 21:23:12 UTC (rev 1176)
@@ -470,11 +470,9 @@
     while (cluster->c_nodes)
     {
         list = cluster->c_nodes;
-        cluster->c_nodes = list->next;
-
         node = (O2CBNode *)list->data;
-        g_list_free(list);
 
+        cluster->c_nodes = g_list_delete_link(list, list);
         o2cb_node_free(node);
     }
 




More information about the Ocfs2-tools-commits mailing list