forked from mindspore-Ecosystem/mindspore
!5421 Fix sparse slicer leak
Merge pull request !5421 from ZPaC/r0.7-fix-sparseslicer-leak
This commit is contained in:
commit
2ff8de674c
|
@ -502,6 +502,11 @@ void WorkerProxy<T>::SparseSlicer(int timestamp, const ::ps::KVPairs<T> &send, c
|
||||||
|
|
||||||
kvs.lens = reduced_lens;
|
kvs.lens = reduced_lens;
|
||||||
kvs.vals = reduced_data;
|
kvs.vals = reduced_data;
|
||||||
|
|
||||||
|
delete[] src_grad_data;
|
||||||
|
delete[] src_indice_data;
|
||||||
|
delete[] new_grad;
|
||||||
|
delete[] new_indices;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (indices_size <= 0) {
|
if (indices_size <= 0) {
|
||||||
|
|
Loading…
Reference in New Issue