This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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: [PATCH] libdwfl: Fix memory leak in __libdwfl_open_by_build_id.


On Mon, 2015-06-01 at 17:10 +0200, Mark Wielaard wrote:
> commit c57829 introduced a memory leak by passing the path string to
> strsep. strsep will change the given pointer and set it to NULL
> eventually. Causing the original pointer to leak. Fix by passing a
> copy of the pointer to strsep.

Pushed to master.

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