The Samba-Bugzilla – Bug 5585
Memory leak in smbc_opendir()/smbc_closedir()
Last modified: 2008-07-16 08:58:50 UTC
and compare valgrind results for different "count" value i found
1) read samba directory: OK
2) read contents of samba share: OK
3) read list of shares: MEMORY LEAK
4) read list of computer in samba group: MEMORY LEAK
5) read list of samba groups: MEMORY LEAK
see the test souce/results in attachment. Edit and execute "x.sh" to repeat the test in your environment.
Created attachment 3388 [details]
test source and results
Fixed with commit 88c9cf2fdc8f3d704f7f27c25ef6dc6940d451d3 for 3.2, and with commit 7a65053bc8579b4f56045fb2c658a91a4af0dfea for 3.3, with patch provided by Andreas Schneider.