On Tue, Feb 11, 2020 at 4:20 AM H.J. Lu wrote: > > On Mon, Feb 10, 2020 at 6:31 PM Alan Modra wrote: > > > > On Mon, Feb 10, 2020 at 05:22:24PM -0800, H.J. Lu wrote: > > > + if (lto_symbol_found) > > > + { > > > + current_plugin->real_nsyms = real_nsyms; > > > + current_plugin->real_syms = real_syms; > > > + /* NB: We can't close RBFD which own the real symbol info. */ > > > + current_plugin->real_bfd = rbfd; > > > + } > > > + else > > > + bfd_close (rbfd); > > > > I think you might want to free real_syms here on else branch. OK with > > that fix. > > I am checking in this patch to avoid uninitialized memory. This patch is needed to support multiple plugins in ${libdir}/bfd-plugins directory. OK for master branch? Thanks. -- H.J.