This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gold][patch] Cleanup more mmap leakage


Cary Coutant <ccoutant@google.com> writes:

>         * archive.cc (include_member): Destroy Read_symbols_data object before
>         releasing file.
>         * object.cc (Read_symbols_data::~Read_symbols_data) New destructor.
>         * object.h (Read_symbols_data::Read_symbols_data) New constructor.
>         (Read_symbols_data::~Read_symbols_data) New destructor.
>         (Section_relocs::Section_relocs) New constructor.
>         (Section_relocs::~Section_relocs) New destructor.
>         (Read_relocs_data::Read_relocs_data) New constructor.
>         (Read_relocs_data::~Read_relocs_data) New destructor.
>         * testsuite/binary_unittest.cc (Sized_binary_test): Set sd member
>         pointers to NULL after deleting.

This is OK.

Thanks.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]