Skip to content

Commit

Permalink
Use the PHP allocator.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasff committed May 20, 2011
1 parent f488c60 commit 2b43aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ PHPAPI RedisSock* redis_sock_create(char *host, int host_len, unsigned short por
RedisSock *redis_sock;

redis_sock = ecalloc(1, sizeof(RedisSock));
redis_sock->host = strndup(host, host_len);
redis_sock->host = estrndup(host, host_len);
redis_sock->stream = NULL;
redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED;

Expand Down

0 comments on commit 2b43aab

Please sign in to comment.