userlandfs/server/fuse: Fix PVS V773
Fix FUSEVolume::OpenAttr() was exited without releasing the 'cookie' pointer. Change-Id: I8bf08268c77e1c9704227b1d4c7c94ddcc8b09a3 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2947 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
ece405c749
commit
69d1697649
@@ -2211,8 +2211,10 @@ FUSEVolume::OpenAttr(void* _node, const char* name, int openMode,
|
||||
|
||||
int bytesRead = fuse_fs_getxattr(fFS, path, name, cookie->Buffer(),
|
||||
attrSize);
|
||||
if (bytesRead < 0)
|
||||
if (bytesRead < 0) {
|
||||
delete cookie;
|
||||
return bytesRead;
|
||||
}
|
||||
|
||||
*_cookie = cookie;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user