free compression buffer properly.