Re: [patch/Darwin] Fix cleanup leak in machoread.c:macho_symfile_read

Tom Tromey
2013-06-18T15:41:59Z

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> This patch prevents this by using one single cleanup queue for
Joel> the entire function, rather than having additional separate
Joel> cleanup queues (Eg: for the handling of the minimal symbols),
Joel> thus preventing the premature free'ing of the minimal_symbols
Joel> array.

Joel> Secondly, this patch takes this opportunity for avoiding the use
Joel> of the oso_vector global, thus making it simpler to track its
Joel> lifetime.

Thanks for doing this, Joel.

Tom