Fix scannedonly memory management
Merge pull request #727 from Zentyal/scabrero/samba-scannedonly-fix

Fix scannedonly memory management