Re: dladdr and dll refcount

2025-04-05 Thread Jeremy Drake via Cygwin
On Sat, 5 Apr 2025, Jon Turney wrote: > On 05/04/2025 06:28, Jeremy Drake via Cygwin wrote: > > I just happened to look at dlfcn.cc dladdr function, and I had a question. > > Should dladdr be using the GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT > > flag? It doesn't seem like dladdr should be in

Re: dladdr and dll refcount

2025-04-05 Thread Jon Turney via Cygwin
On 05/04/2025 06:28, Jeremy Drake via Cygwin wrote: I just happened to look at dlfcn.cc dladdr function, and I had a question. Should dladdr be using the GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT flag? It doesn't seem like dladdr should be incrementing the refcount. Indeed. Well spotted. T