[PATCH 2/3] solib_target_free_so memory leak
Hannes Domani via gdb-patches
gdb-patches@sourceware.org
Fri Jan 3 16:47:00 GMT 2020
Am Freitag, 3. Januar 2020, 17:41:21 MEZ hat Tom Tromey <tom@tromey.com> Folgendes geschrieben:
> >>>>> "Christian" == Christian Biesinger via gdb-patches <gdb-patches@sourceware.org> writes:
>
>
> >> + xfree (li->offsets);
> >> delete li;
>
>
> Christian> Maybe a better fix would be to change offsets to be a
> Christian> unique_xmalloc_ptr?
>
> Makes sense to me.
I've sent a v2 for this here:
https://sourceware.org/ml/gdb-patches/2019-12/msg01034.html
Regards
Hannes Domani
More information about the Gdb-patches
mailing list