diff --git a/mindspore/ccsrc/frontend/parallel/ps/worker_proxy.h b/mindspore/ccsrc/frontend/parallel/ps/worker_proxy.h index 8896dabc4b6..dfb481c2320 100644 --- a/mindspore/ccsrc/frontend/parallel/ps/worker_proxy.h +++ b/mindspore/ccsrc/frontend/parallel/ps/worker_proxy.h @@ -502,6 +502,11 @@ void WorkerProxy::SparseSlicer(int timestamp, const ::ps::KVPairs &send, c kvs.lens = reduced_lens; kvs.vals = reduced_data; + + delete[] src_grad_data; + delete[] src_indice_data; + delete[] new_grad; + delete[] new_indices; } if (indices_size <= 0) {