I agree with grg99. This is a library function and is supposedly thoroughly tested.
What probably happens is that for the first call, certain allocations are done (setting up streams etc.) that will probably not occur again on subsequent calls.
Give grg99's suggestion a try, and see if more memory is "leaking" or not.
Main Topics
Browse All Topics





by: grg99Posted on 2007-08-30 at 04:09:11ID: 19798905
It may be a false alarm.
Try calling this code in an infinite loop and see if the process's memory usage keeps going up.