NULL reallocated memory
Merge pull request #22 from adjust/segfault_fix

NULL reallocated memory