reserve memory to prevent segfault
Merge pull request #98 from agomez2/my-latest-fix

reserve memory to prevent segfault