Forgot to change realloc -> H5resize_memory in H5Zbzip2.c

This commit is contained in:
Dennis Heimbigner 2018-11-21 16:19:14 -07:00 committed by GitHub
parent 231e1a28af
commit ab848a3aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;