[Freeswitch-svn] [commit] r8754 - freeswitch/trunk/libs/apr/memory/unix

Freeswitch SVN anthm at freeswitch.org
Wed Jun 4 13:53:33 EDT 2008


Author: anthm
Date: Wed Jun  4 13:53:33 2008
New Revision: 8754

Modified:
   freeswitch/trunk/libs/apr/memory/unix/apr_pools.c

Log:
prevent endless loop

Modified: freeswitch/trunk/libs/apr/memory/unix/apr_pools.c
==============================================================================
--- freeswitch/trunk/libs/apr/memory/unix/apr_pools.c	(original)
+++ freeswitch/trunk/libs/apr/memory/unix/apr_pools.c	Wed Jun  4 13:53:33 2008
@@ -1990,7 +1990,12 @@
         }
 
         lastp = &c->next;
-        c = c->next;
+
+		if (c == c->next) {
+			c = NULL;
+		} else {
+			c = c->next;
+		}
     }
 }
 



More information about the Freeswitch-svn mailing list