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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
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 !

Cheers,

        Jeremy.

bug-13069.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Samba - samba-technical mailing list
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 !

pushed.

-slow