Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
re: Issue #2723

H/T to Roland Ambs for finding a memory leak where an allocated
HDF5 plist is not being reclaimed.
  • Loading branch information
DennisHeimbigner committed Jul 23, 2023
1 parent dc2b0f7 commit 65f866f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This file contains a high-level description of this package's evolution. Release

## 4.9.3 - TBD

* Fix memory leak WRT unreclaimed HDF5 plist. See [Github #????](https://github.com/Unidata/netcdf-c/pull/????).
* Suppress filters on variables with non-fixed-size types. See [Github #2716](https://github.com/Unidata/netcdf-c/pull/2716).
* Provide a single option to disable all network access and testing. See [Github #2708](https://github.com/Unidata/netcdf-c/pull/2708).
* Fix some problems with earthdata authorization and data access. See [Github #2709](https://github.com/Unidata/netcdf-c/pull/2709).
Expand Down
2 changes: 2 additions & 0 deletions libhdf5/hdf5open.c
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,8 @@ nc4_open_file(const char *path, int mode, void* parameters, int ncid)
if (!(crt_order_flags & H5P_CRT_ORDER_TRACKED)) {
nc4_info->no_attr_create_order = NC_TRUE;
}
if (H5Pclose(pid) < 0)
BAIL(NC_EHDFERR);
}

/* Now read in all the metadata. Some types and dimscale
Expand Down

0 comments on commit 65f866f

Please sign in to comment.