mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-12 15:45:21 +08:00
Forgot to change realloc -> H5resize_memory in H5Zbzip2.c
This commit is contained in:
parent
231e1a28af
commit
ab848a3aeb
@ -123,7 +123,7 @@ size_t H5Z_filter_bzip2(unsigned int flags, size_t cd_nelmts,
|
||||
if (ret != BZ_STREAM_END && stream.avail_out == 0) {
|
||||
/* Grow the output buffer. */
|
||||
newbuflen = outbuflen * 2;
|
||||
newbuf = realloc(outbuf, newbuflen);
|
||||
newbuf = H5resize_memory(outbuf, newbuflen);
|
||||
if (newbuf == NULL) {
|
||||
fprintf(stderr, "memory allocation failed for bzip2 decompression\n");
|
||||
goto cleanupAndFail;
|
||||
|
Loading…
Reference in New Issue
Block a user