diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-14 16:21:31 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2015-09-14 16:21:31 (GMT) |
commit | 050dd023870ac6858eaf55c20c7ffd46e97b1454 (patch) | |
tree | bd2f4bf92cedc0f45d4aa68d008ff03d05c56e07 /src/H5Pocpl.c | |
parent | 102337449220dfc29be1cce29147704b9c760832 (diff) | |
download | hdf5-050dd023870ac6858eaf55c20c7ffd46e97b1454.zip hdf5-050dd023870ac6858eaf55c20c7ffd46e97b1454.tar.gz hdf5-050dd023870ac6858eaf55c20c7ffd46e97b1454.tar.bz2 |
[svn-r27771] Description:
Merge in part of Neil's property list fixes: Fix a minor memory leak,
add some sanity checks, clean up the code a little, and verify that encoding/
decoding default versions of the property lists works correctly.
Tested on:
MacOSX/64 10.10.5 (amazon) w/serial
(Too minor to require h5committest)
Diffstat (limited to 'src/H5Pocpl.c')
-rw-r--r-- | src/H5Pocpl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Pocpl.c b/src/H5Pocpl.c index 08eba3d..1975283 100644 --- a/src/H5Pocpl.c +++ b/src/H5Pocpl.c @@ -1640,6 +1640,9 @@ H5P__ocrt_pipeline_dec(const void **_pp, void *_value) /* Add the filter to the I/O pipeline */ if(H5Z_append(pline, filter.id, filter.flags, filter.cd_nelmts, filter.cd_values) < 0) HGOTO_ERROR(H5E_PLINE, H5E_CANTINIT, FAIL, "unable to add filter to pipeline") + + /* Free cd_values, if it was allocated */ + filter.cd_values = (unsigned *)H5MM_xfree(filter.cd_values); } /* end for */ done: |