Patch for memory leak in vfs_defaults.c

Andrew Walker awalker at
Fri Apr 6 20:40:44 UTC 2018

Hi all,
I encountered an issue where several FreeNAS users on samba 4.7 were
experiencing memory leak resulting in single smbd process consuming all
available RAM and swap space. Disabling the getwd cache significantly
increased rate of leak, and enabling widelinks / disabling unix extensions
made the leak apparently stop. Investigation indicated that the leak was in

The attached patch resolved the issue.

Thank you,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-memory-leak-in-vfswrap_getwd.patch
Type: application/octet-stream
Size: 1271 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list