When you test module do you reload samba server before test with existent path?

After first time I run module, smbd process get  ~ 100% CPU and slowly eats my memory.

Tested under 
dpkg -l | grep samba
ii  samba                                2:3.6.6-6
and under 3.5.21 builded from sources.