From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60750 invoked by alias); 15 Jul 2015 11:19:06 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 60741 invoked by uid 89); 15 Jul 2015 11:19:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Wed, 15 Jul 2015 11:19:00 -0000 From: Siddhesh Poyarekar To: Paul Pluzhnikov Cc: GLIBC Devel , Paul Pluzhnikov Subject: Re: Fix failure to cleanup wide stream buffers in preparation for BZ#16734 fix Message-ID: <20150715111859.GJ29227@spoyarek.pnq.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-07/txt/msg00444.txt.bz2 On Sun, Jul 12, 2015 at 12:22:03PM -0700, Paul Pluzhnikov wrote: > 2015-07-12 Paul Pluzhnikov > > [BZ #16734] > * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well. Looks good to me. thanks, Siddhesh > diff --git a/libio/genops.c b/libio/genops.c > index 0f5e800..e13b3d1 100644 > --- a/libio/genops.c > +++ b/libio/genops.c > @@ -977,6 +977,9 @@ _IO_unbuffer_all (void) > > _IO_SETBUF (fp, NULL, 0); > > + if (fp->_mode > 0) > + _IO_wsetb (fp, NULL, NULL, 0); > + > #ifdef _IO_MTSAFE_IO > if (cnt < MAXTRIES && fp->_lock != NULL) > _IO_lock_unlock (*fp->_lock);