From f0a0c338a3d73b246783d1f0121c1ad62d4570ab Mon Sep 17 00:00:00 2001 From: liu zhengxi <380185688@qq.com> Date: Sat, 12 Oct 2019 17:15:06 +0800 Subject: [PATCH] remove incorrect new in c style, test=release/1.6 (#20456) --- paddle/fluid/inference/capi/c_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/inference/capi/c_api.h b/paddle/fluid/inference/capi/c_api.h index a58e9a54e05..58380c9e42f 100644 --- a/paddle/fluid/inference/capi/c_api.h +++ b/paddle/fluid/inference/capi/c_api.h @@ -37,7 +37,7 @@ typedef struct PD_PaddleBuf PD_PaddleBuf; typedef struct PD_AnalysisConfig PD_AnalysisConfig; typedef struct PD_ZeroCopyData { - char* name = new char[50]; + char* name; void* data; PD_DataType dtype; int* shape; -- GitLab