mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Merge pull request #1482 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:valgrind_fixes to develop
* commit 'a4e63bb98072868a145c45e8247280ebc86c3a6d': Fixed a memory issue flagged by valgrind in the direct_chunk test.
This commit is contained in:
commit
f81103e89e
@ -1910,10 +1910,10 @@ test_read_unallocated_chunk (hid_t file)
|
||||
goto error;
|
||||
|
||||
/* Write a single chunk to intialize the chunk storage */
|
||||
HDmemset(&chunk_dims, 0, sizeof(chunk_dims));
|
||||
HDmemset(direct_buf, 0, CHUNK_NX * CHUNK_NY * sizeof(int));
|
||||
offset[0] = 0; offset[1] = 0;
|
||||
|
||||
if(H5Dwrite_chunk(dataset, dxpl, filter_mask, offset, chunk_nbytes, &chunk_dims) < 0)
|
||||
if(H5Dwrite_chunk(dataset, dxpl, filter_mask, offset, chunk_nbytes, direct_buf) < 0)
|
||||
goto error;
|
||||
|
||||
/* Attempt to read each chunk in the dataset. Chunks are not allocated,
|
||||
|
Loading…
Reference in New Issue
Block a user