[PATCH] Ensure sys_getwd() doesn't leak memory on error and returns correct error code on older systems.

Ralph Böhme slow at samba.org
Wed Oct 4 08:03:37 UTC 2017

On Tue, Oct 03, 2017 at 06:22:35PM +0000, Jeremy Allison wrote:
> Fix for a memory leak problem on error on non-Linux systems
> (that use the old-style getwd()-needs-malloc call). Also
> ensures we always return correct errno from getwd() if it
> fails.
> Please review and push if OK !



More information about the samba-technical mailing list