This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdwfl: Fix memory leak in __libdwfl_open_by_build_id.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 05 Jun 2015 14:55:38 +0200
- Subject: 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.