Commit ce3d9ff3 authored by Shane Snyder's avatar Shane Snyder

free dxt buffers at shutdown time

parent c599503b
......@@ -607,6 +607,12 @@ void darshan_core_shutdown()
final_core->log_hdr_p->mod_map[i].len =
gz_fp - final_core->log_hdr_p->mod_map[i].off;
/* XXX: DXT manages its own module memory buffers, so we need to
* explicitly free them
*/
if(i == DXT_POSIX_MOD || i == DXT_MPIIO_MOD)
free(mod_buf);
/* error out if the log append failed */
DARSHAN_MPI_CALL(PMPI_Allreduce)(&ret, &all_ret, 1, MPI_INT,
MPI_LOR, MPI_COMM_WORLD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment