Skip to content

Commit 3d87525

Browse files
committed
Use the PHP allocator.
1 parent dd93ab0 commit 3d87525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ PHPAPI RedisSock* redis_sock_create(char *host, int host_len, unsigned short por
655655
RedisSock *redis_sock;
656656

657657
redis_sock = ecalloc(1, sizeof(RedisSock));
658-
redis_sock->host = strndup(host, host_len);
658+
redis_sock->host = estrndup(host, host_len);
659659
redis_sock->stream = NULL;
660660
redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED;
661661

0 commit comments

Comments
 (0)