Removed unused function.
Fix artificial test failure.
Merge pull request #90 from Hamcha/master

Double Free!
Static analysis fixes.
Change (void *) to (unsigned char *) for portability.