[Gdal-dev] Small memleak: no CPLCleanupTLS for non-pthreads
Ben Discoe
ben at vterrain.org
Mon Aug 22 02:55:44 EDT 2005
I am looking at some small new memleaks that have appeared in moving to
1.3.0. There are some allocations in CPLGetTLSList() which are only freed
in the function CPLCleanupTLS(). However, of the 3 new threading options,
CPLCleanupTLS() only exists in the case of CPL_MULTIPROC_PTHREAD.
On Windows, it defaults to CPL_MULTIPROC_WIN32, so there is no
CPLCleanupTLS() code. Should it be added, or is there any other way to
release this memory?
Thanks,
Ben
More information about the Gdal-dev
mailing list