[PATCH] ar: Always close newfd in do_oper_insert.

Mark Wielaard mark@klomp.org
Tue Apr 13 12:45:21 GMT 2021


On Sat, Apr 03, 2021 at 07:24:42PM +0200, Mark Wielaard wrote:
> newfd is normally created by mkstemp given the original fd exists.
> Otherwise it will created by open from arfname. In the second case
> newfd might not get closed. Preventd this by always trying to close
> it after errout.

Pushed.


More information about the Elfutils-devel mailing list