htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit b0280908a38980407715287ec5605ab3513a7c7a
parent 8c8732ca69a4897f7b71244222446cfa0664d110
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 14 Feb 2025 15:36:37 +0100

core: fix of a memory leak in buffer resolution

With MPI, temporary data was not deleted.

Diffstat:
Msrc/core/htrdr_solve_buffer.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/htrdr_solve_buffer.c b/src/core/htrdr_solve_buffer.c @@ -37,8 +37,8 @@ #include <star/ssp.h> -#include <omp.h> #include <mpi.h> +#include <omp.h> #define CHUNK_SIZE 32 /* Number of items in one chunk */ @@ -339,6 +339,7 @@ mpi_gather_chunks } exit: + if(chunk) chunk_ref_put(chunk); return res; error: htrdr_log_err(htrdr, "Error while gathering results -- %s\n",