revert c4250ab . causes segfaults when autosave_interval > 0.
Merge pull request #1121 from aliaspider/master

revert c4250ab . causes segfaults when autosave_interval > 0.