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)
Implemented zstrndup.
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
seems like pcre_free_study is not defined on older ubuntu
check macro PCRE_STUDY_JIT_COMPILE to compile pcre with JIT
r3_tree_matchl does not return int
Merge branch 'patch-1' of https://github.com/thedrow/r3 into thedrow-patch-1