> There is DllMain function that calls DeleteThreadxxxData if OpenCV is build as dll

There's no `TlsFree` in there, though, or anywhere else.

> In case of static build TlsFree is called inside TlsSlot methods.

Yes, I was talking about the DLL build.