Memory allocation problems on device

Hello,

We are implementing a monte-carlo simulation on cuda, and we have noticed a strange behavior of CudaMalloc / CudaFree .
It seems that when deallocations don’t occur in a strict reverse order from the allocations, we get a memory leak.
Any clue or anyone with the same problem ?

Thanks & regards