pikhq / musl-nscd

Musl-nscd is an implementation of the NSCD protocol, suitable for use with musl and with standard NSS modules
Other
46 stars 14 forks source link

Fix memory leak in socket_handle. #25

Closed ericonr closed 3 years ago

ericonr commented 3 years ago

If return_result returned zero, it would only close the socket and not free the memory in str. By removing the special case, str will always be freed and the socket will still be closed.