X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flzx-decompress.c;h=d259eeedc38ae31b6c7156fc0b1599f3b2af8d90;hb=500874ebbf2839d2c93db2b4094817c219946f29;hp=bbb105144710464068c33a9eeaabdb41ea452c05;hpb=a20052d2eaf44eb0466972826f8f9e0c3bcb92d2;p=wimlib diff --git a/src/lzx-decompress.c b/src/lzx-decompress.c index bbb10514..d259eeed 100644 --- a/src/lzx-decompress.c +++ b/src/lzx-decompress.c @@ -809,7 +809,7 @@ lzx_free_decompressor(void *_ctx) { struct lzx_decompressor *ctx = _ctx; - FREE(ctx); + ALIGNED_FREE(ctx); } static int @@ -822,7 +822,8 @@ lzx_create_decompressor(size_t max_window_size, if (!lzx_window_size_valid(max_window_size)) return WIMLIB_ERR_INVALID_PARAM; - ctx = MALLOC(sizeof(struct lzx_decompressor)); + ctx = ALIGNED_MALLOC(sizeof(struct lzx_decompressor), + DECODE_TABLE_ALIGNMENT); if (ctx == NULL) return WIMLIB_ERR_NOMEM;