Skip to content

Commit

Permalink
make sure to call accumulator_destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedsnyder committed Jan 27, 2023
1 parent 96806fa commit 8f83274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion darshan-util/pydarshan/darshan/backend/cffi_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,12 @@ def log_get_derived_metrics(log_path: str, mod_name: str):
darshan_derived_metrics,
rbuf[0])
libdutil.darshan_free(buf[0])
libdutil.darshan_accumulator_destroy(darshan_accumulator[0])
log_close(log_handle)
if r != 0:
raise RuntimeError("A nonzero exit code was received from "
"darshan_accumulator_emit() at the C level. "
"It may be possible "
"to retrieve additional information from the stderr "
"stream.")
log_close(log_handle)
return darshan_derived_metrics

0 comments on commit 8f83274

Please sign in to comment.