summaryrefslogtreecommitdiff
path: root/archival/libarchive/bz/bzlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libarchive/bz/bzlib.c')
-rw-r--r--archival/libarchive/bz/bzlib.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/archival/libarchive/bz/bzlib.c b/archival/libarchive/bz/bzlib.c
index 9af2f02..ef19ae1 100644
--- a/archival/libarchive/bz/bzlib.c
+++ b/archival/libarchive/bz/bzlib.c
@@ -99,9 +99,8 @@ void BZ2_bzCompressInit(bz_stream *strm, int blockSize100k)
s->ptr = (uint32_t*)s->arr1;
s->arr2 = xmalloc((n + BZ_N_OVERSHOOT) * sizeof(uint32_t));
s->block = (uint8_t*)s->arr2;
- s->ftab = xmalloc(65537 * sizeof(uint32_t));
- s->crc32table = crc32_filltable(NULL, 1);
+ crc32_filltable(s->crc32table, 1);
s->state = BZ_S_INPUT;
s->mode = BZ_M_RUNNING;
@@ -369,8 +368,8 @@ void BZ2_bzCompressEnd(bz_stream *strm)
s = strm->state;
free(s->arr1);
free(s->arr2);
- free(s->ftab);
- free(s->crc32table);
+ //free(s->ftab); // made it array member of s
+ //free(s->crc32table); // ditto
free(s);
}