prevent endless loop

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8754 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-06-04 17:53:33 +00:00
parent f4160459a6
commit fd4a3d5515
1 changed files with 6 additions and 1 deletions

View File

@ -1990,7 +1990,12 @@ APR_DECLARE(void) apr_pool_cleanup_kill(apr_pool_t *p, const void *data,
}
lastp = &c->next;
c = c->next;
if (c == c->next) {
c = NULL;
} else {
c = c->next;
}
}
}