Memory leak
Summary
Memory leak in isc_thread_create
function.
The memory leak is found by a static analyzer developed at CAST (
https://www.linkedin.com/company/cast-center/).
BIND version used
THe last version, commit hash - edd9925e.
Steps to reproduce
In lib/isc/thread.c:139 thread_wrap
is called in pthread_create
argument.
thread_wrap
allocates dynamic memory and return, which is not freed.
What is the expected correct behavior?
Possible fixes
We think, you should save thread_wrap
return in a pointer, then free it.