From 70d36b1b4c2eb2dd93545c2f0b4bcbdc502065c7 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 22 Jun 2025 21:48:57 -0400 Subject: [PATCH] when finalizing from the fortran module we should also free the external fix storage --- fortran/lammps.f90 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fortran/lammps.f90 b/fortran/lammps.f90 index d296f7c870..74e24f3576 100644 --- a/fortran/lammps.f90 +++ b/fortran/lammps.f90 @@ -1162,6 +1162,9 @@ CONTAINS CALL lammps_mpi_finalize() CALL lammps_python_finalize() CALL lammps_plugin_finalize() + IF (ALLOCATED(ext_data)) THEN + DEALLOCATE(ext_data) + END IF END IF END IF END SUBROUTINE lmp_close