Mercurial > hg > Members > kono > Cerium
diff TaskManager/kernel/ppe/MailManager.cc @ 194:72dcf908ec52
fix
author | gongo@localhost.localdomain |
---|---|
date | Tue, 20 Jan 2009 14:50:41 +0900 |
parents | 7927e00fb8e2 |
children | 1733f3cbfa28 |
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/MailManager.cc Tue Jan 13 19:06:13 2009 +0900 +++ b/TaskManager/kernel/ppe/MailManager.cc Tue Jan 20 14:50:41 2009 +0900 @@ -69,9 +69,18 @@ { MailQueuePtr q; +#if 0 for (q = mailQueuePool; q; q = q->next) { free(q); } +#else + q = mailQueuePool; + while (q) { + MailQueuePtr tmp = q->next; + free(q); + q = tmp; + } +#endif freeMailQueue = mailQueuePool = NULL; }