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

Re: PATCH: Memorey leak with PS4 usage.



On May 31,  8:27pm, Felix Rosencrantz wrote:
} Subject: PATCH: Memorey leak with PS4 usage.
}
} There seems to be a memory leak issue with the use of promptexpand.
} I've included a patch for utils.c.

What leads you to this conclusion?

dupstring() allocates off zsh's internal heap.  Freeing a pointer off the
heap is a Bad Thing.  The heap is allocated and freed in large chunks that
zsh subdivides as necessary.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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