Allocate enough memory to hold pointers
Merge pull request #287 from cgohlke/patch-1

Allocate enough memory to hold pointers