Re: [perfmon2] libpfm4 on GCC 12: pfmlib_perf_event_pmu.c:293:47: error: pointer may be used after 'realloc'

2022-06-08 Thread William Cohen
On 6/8/22 10:01, Stephane Eranian via perfmon2-devel wrote: > Hi, > > Could you try the attached patch? > There is no use after free in the code as far as I can tell. > But I modified the code to avoid triggering the gcc warning. > I don't have gcc-12 so let me know if this works for you. Hi, I

Re: [perfmon2] libpfm4 on GCC 12: pfmlib_perf_event_pmu.c:293:47: error: pointer may be used after 'realloc'

2022-06-08 Thread Stephane Eranian via perfmon2-devel
Hi, Could you try the attached patch? There is no use after free in the code as far as I can tell. But I modified the code to avoid triggering the gcc warning. I don't have gcc-12 so let me know if this works for you. On Tue, Jun 7, 2022 at 1:26 AM Stephane Eranian wrote: > > Hi, > > Thanks for