On 21 April 2012 14:56, Jason Merrill <ja...@redhat.com> wrote:
> It seems like we'll do this for every line in the header, which could lead
> to a lot of leaked memory.  Instead, we should canonicalize when setting
> ORDINARY_MAP_FILE_NAME.

Hum, my understanding of the code is that this is exactly what I
implemented. That is, at most we leak every time
ORDINARY_MAP_FILE_NAME is set to a system header file (if the realpath
is shorter than the original path). This is a bit inefficient because
this happens two times per #include (when entering and when leaving).
But I honestly don't know how to avoid this.

If any one has suggestions on a better implementation, I am happy to
hear about it.

Cheers,

Manuel.

Reply via email to