Skip to content

Commit 40be9a0

Browse files
author
shanedsnyder
authored
Merge pull request #818 from tylerjereddy/treddy_memleak_cffi_only_pt2
BUG: fix mount memleak (CFFI only)
2 parents a8fb88b + fe08514 commit 40be9a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

darshan-util/pydarshan/darshan/backend/cffi_backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def log_get_mounts(log):
178178
for i in range(0, cnt[0]):
179179
mntlst.append((ffi.string(mnts[0][i].mnt_path).decode("utf-8"),
180180
ffi.string(mnts[0][i].mnt_type).decode("utf-8")))
181+
libdutil.darshan_free(mnts[0])
181182

182183
return mntlst
183184

0 commit comments

Comments
 (0)