提交 eb4577c2 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Initialize alloc_fns with 0s

Change: 150117973
上级 6f05489f
......@@ -15,6 +15,7 @@ limitations under the License.
#include "tensorflow/core/distributed_runtime/rpc/grpc_server_lib.h"
#include <cstring>
#include <limits>
#include <memory>
......@@ -330,6 +331,7 @@ class GrpcServerRegistrar {
public:
GrpcServerRegistrar() {
gpr_allocation_functions alloc_fns;
memset(&alloc_fns, 0, sizeof(alloc_fns));
alloc_fns.malloc_fn = port::Malloc;
alloc_fns.realloc_fn = port::Realloc;
alloc_fns.free_fn = port::Free;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册