diff options
author | yang-g <yangg@google.com> | 2016-04-20 16:38:26 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-04-20 16:38:26 -0700 |
commit | e2914023068da2ded0f825cd1790b1c70f14e0a5 (patch) | |
tree | abbade79a6e2b15dbe3748129d80ab3c18b19b9d /src/core/lib/iomgr/udp_server.c | |
parent | 25df28ef75ba99e5d16743be7310c2920ddd8a32 (diff) | |
parent | 2aec20120020741ee64fcd22042c2e56d4cf0a5b (diff) |
Merge remote-tracking branch 'upstream/master' into proto_comments
Diffstat (limited to 'src/core/lib/iomgr/udp_server.c')
-rw-r--r-- | src/core/lib/iomgr/udp_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/udp_server.c b/src/core/lib/iomgr/udp_server.c index a0b9709be5..24131179af 100644 --- a/src/core/lib/iomgr/udp_server.c +++ b/src/core/lib/iomgr/udp_server.c @@ -328,7 +328,7 @@ int grpc_udp_server_add_port(grpc_udp_server *s, const void *addr, &sockname_len)) { port = grpc_sockaddr_get_port((struct sockaddr *)&sockname_temp); if (port > 0) { - allocated_addr = malloc(addr_len); + allocated_addr = gpr_malloc(addr_len); memcpy(allocated_addr, addr, addr_len); grpc_sockaddr_set_port(allocated_addr, port); addr = allocated_addr; |