bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] libdiskfs: fix reference counting of peropen objects


From: Samuel Thibault
Subject: Re: [PATCH] libdiskfs: fix reference counting of peropen objects
Date: Fri, 29 Aug 2014 23:13:08 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Fri 29 Aug 2014 11:33:44 +0200, a écrit :
> Previously, peropen objects were created with a reference count of
> zero.  Therefore, if diskfs_create_protid fails, passing such an
> object to diskfs_release_peropen would lead to a reference count
> underflow.

I see, it is indeed more convenient this way.  Please also update the
doc/hurd.texi documentation.

It seems that libnetfs doesn't even care about calling netfs_release_peropen
on diskfs_make_protid errors, thus leaking the peropen memory. Are you
having a look already?

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]