Added zmalloc from redis in order to allow different allocators.
Merge branch 'topic/zmalloc' of https://github.com/thedrow/r3 into thedrow-topic/zmalloc
fix header includes
Fixed all warnings from tests.
Removed wrong call to zfree that caused a segfault.
Using zstrndup instead of strndup)
Running valgrind in a different build in order to detect memory leaks.
Implemented zstrndup.
Fixed a bash syntax error.
Fixed bash syntax errors.
Bash is being touchy.
Guarding against freeing NULL pointers.
More guarding against freeing NULL pointers.
Merge pull request #28 from thedrow/topic/zmalloc

Added zmalloc from redis in order to support different allocators
libpcre does not use zmalloc
free edge struct
use pcre's own functions to free pcre related structures
Fix
Fix variable name
when we free it, we know it's not NULL