[Bug libbacktrace/87529] libbacktrace API forces users to have memory leaks

ian at airs dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 5 14:01:00 GMT 2018


Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
                 CC|                            |ian at airs dot com

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
Programs are expected to call backtrace_create_state once.  There's no reason
to call it more than once.

Yes, I agree that it would be nice to have backtrace_free_state, but it's hard
to write correctly.  And it's hard to see why any program would want to call
it, as it would be less efficient.

More information about the Gcc-bugs mailing list