[ofw] [PATCH] complib/user: fix timer race conditions
Hefty, Sean
sean.hefty at intel.com
Sun Jun 27 22:11:57 PDT 2010
> That is we cannot run CreateTimerQueueTimer and forget the handle being
> created. We need to make sure that it is cleaned, otherwise we will have a
> very big memory leak on 2008 R2 and handle leacks on 2003.
DeleteTimerQueueEx will block until all previously timer-queue timers have completed. DeleteTimerQueueTimer is used to cancel a pending timer-queue timer. It's not entirely clear from the documentation, but it doesn't appear that CreateTimerQueueTimer must be matched with a call to DeleteTimerQueueTimer. E.g. the sample for using timer queues doesn't call it.
We should see if it appears that there's any memory leak running with these patches applied just to be sure.
- Sean
More information about the ofw
mailing list