Fix crashing bugs found with sysbench
Merge pull request #87 from LinuxJedi/bug_fixes

Fix crashing bugs found with sysbench