diff --git a/src/liblzma/common/filter_common.c b/src/liblzma/common/filter_common.c index d15d9cc9..6c06c78d 100644 --- a/src/liblzma/common/filter_common.c +++ b/src/liblzma/common/filter_common.c @@ -213,8 +213,8 @@ lzma_filters_copy(const lzma_filter *src, lzma_filter *real_dest, error: // Free the options which we have already allocated. - while (i-- > 0) - lzma_free(dest[i].options, allocator); + while (i > 0) + lzma_free(dest[--i].options, allocator); return ret; }