Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] fix several memory leaks



On Tue, 31 Jul 2018 23:30:33 +0900
Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> > 2018/07/30 22:47, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
> > wrote:
> > 
> > If setupterm(), over which we have no control, is really a problem
> > we probably need a front-end with a lock to make sure it only ever
> > gets called once.
> > 
> > Something like  a function in utils.c which as the #ifdef buried in
> > it and simply does nothing if we don't HAVE_SETUPTERM, for
> > example?  
> 
> Ok, it seems we need a reference count of cur_term.
> How about this?

That seems a reasonable solution.

Cheers
pws



Messages sorted by: Reverse Date, Date, Thread, Author