diff --git a/src/EXTRA-FIX/fix_ave_correlate_long.cpp b/src/EXTRA-FIX/fix_ave_correlate_long.cpp index e3ee7b2c34..7b47d58e51 100644 --- a/src/EXTRA-FIX/fix_ave_correlate_long.cpp +++ b/src/EXTRA-FIX/fix_ave_correlate_long.cpp @@ -321,6 +321,7 @@ FixAveCorrelateLong::FixAveCorrelateLong(LAMMPS *lmp, int narg, char **arg) : if (expand) { for (int i = 0; i < nargnew; i++) delete[] earg[i]; memory->sfree(earg); + memory->sfree(amap); } // allocate and initialize memory for calculated values and correlators diff --git a/src/compute_chunk_spread_atom.cpp b/src/compute_chunk_spread_atom.cpp index 5c47b7770e..993a16a42d 100644 --- a/src/compute_chunk_spread_atom.cpp +++ b/src/compute_chunk_spread_atom.cpp @@ -78,6 +78,7 @@ ComputeChunkSpreadAtom(LAMMPS *lmp, int narg, char **arg) : if (expand) { for (int i = 0; i < nargnew; i++) delete[] earg[i]; memory->sfree(earg); + memory->sfree(amap); } // setup and error check diff --git a/src/compute_global_atom.cpp b/src/compute_global_atom.cpp index b7bfc4a15e..6301e21770 100644 --- a/src/compute_global_atom.cpp +++ b/src/compute_global_atom.cpp @@ -89,6 +89,7 @@ ComputeGlobalAtom::ComputeGlobalAtom(LAMMPS *lmp, int narg, char **arg) : if (expand) { for (int i = 0; i < nargnew; i++) delete [] earg[i]; memory->sfree(earg); + memory->sfree(amap); } // setup and error check for both, index arg and values diff --git a/src/compute_reduce.cpp b/src/compute_reduce.cpp index 385e6f300b..b695a4919a 100644 --- a/src/compute_reduce.cpp +++ b/src/compute_reduce.cpp @@ -257,6 +257,7 @@ ComputeReduce::ComputeReduce(LAMMPS *lmp, int narg, char **arg) : if (expand) { for (int i = 0; i < nargnew; i++) delete[] earg[i]; memory->sfree(earg); + memory->sfree(amap); } // setup and error check diff --git a/src/compute_reduce_chunk.cpp b/src/compute_reduce_chunk.cpp index 133932bb63..974cbba23f 100644 --- a/src/compute_reduce_chunk.cpp +++ b/src/compute_reduce_chunk.cpp @@ -92,6 +92,7 @@ ComputeReduceChunk::ComputeReduceChunk(LAMMPS *lmp, int narg, char **arg) : if (expand) { for (int i = 0; i < nargnew; i++) delete[] earg[i]; memory->sfree(earg); + memory->sfree(amap); } // error check diff --git a/src/fix_ave_chunk.cpp b/src/fix_ave_chunk.cpp index f2d324a073..c93d79337a 100644 --- a/src/fix_ave_chunk.cpp +++ b/src/fix_ave_chunk.cpp @@ -355,6 +355,7 @@ FixAveChunk::FixAveChunk(LAMMPS *lmp, int narg, char **arg) : if (expand) { for (int i = 0; i < nargnew; i++) delete[] earg[i]; memory->sfree(earg); + memory->sfree(amap); } // this fix produces a global array diff --git a/src/fix_ave_correlate.cpp b/src/fix_ave_correlate.cpp index b3632e559a..2007acd160 100644 --- a/src/fix_ave_correlate.cpp +++ b/src/fix_ave_correlate.cpp @@ -277,6 +277,7 @@ FixAveCorrelate::FixAveCorrelate(LAMMPS *lmp, int narg, char **arg) : if (expand) { for (int i = 0; i < nargnew; i++) delete[] earg[i]; memory->sfree(earg); + memory->sfree(amap); } // allocate and initialize memory for averaging