Re: [PATCH 0/2] incpath, Fortran: Fix memory leak in gfc_add_include_path

2021-11-05 Thread Bernhard Reutner-Fischer via Gcc-patches
On Fri, 5 Nov 2021 22:17:16 +0100 Bernhard Reutner-Fischer wrote: > Hi! > > In order to fix this very minor leak, we need a knob to free all > cpp_dirs that were added. > This adds a free_cpp_dirs() to gcc/incpath and needs review from some > global maintainer or maybe libcpp maintainer for thi

[PATCH 0/2] incpath, Fortran: Fix memory leak in gfc_add_include_path

2021-11-05 Thread Bernhard Reutner-Fischer via Gcc-patches
Hi! In order to fix this very minor leak, we need a knob to free all cpp_dirs that were added. This adds a free_cpp_dirs() to gcc/incpath and needs review from some global maintainer or maybe libcpp maintainer for this hunk. Bootstrapped and regtested on x86_64-unknown-linux without regressions.