[Ltrace-devel] Getting prototypes from debug information

Dima Kogan lists at dima.secretsauce.net
Thu May 1 08:25:03 UTC 2014


I plugged all my memory leaks. Stuff still leaks, but nothing new that I
introduced. Some comments inline.


> Dima Kogan <lists at dima.secretsauce.net> writes:
>
> 1. filter_matches_symbol() and dwlf is leaking. Every time I call these
> we leak a bit. The dwfl is out of our hands, but the
> filter_matches_symbol() maybe could be plugged:

I looked into this. Ltrace is definitely leaking it. The regex is
released when filter_destroy() calls filter_rule_destroy(), but those
are not called by anything.



> 2. The prototypes my DWARF parser produces leak a bit. Those are stored
> with protolib_add_prototype(). Is that sufficient? I.e. do protolibs
> eventually clean out their prototypes?

plugged



More information about the Ltrace-devel mailing list