From 6bed73ad8576224d88bebec14c59211fe5b958b3 Mon Sep 17 00:00:00 2001
From: Puck Meerburg <puck@puckipedia.nl>
Date: Sun, 22 Dec 2013 22:57:47 +0000
Subject: [PATCH] Fix Coverity task 992450 (resource leak)
---
src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp b/src/add-ons/kernel/file_systems/nfs4/NFS4Inode.cpp
index 1a3ab1f..737ee4e 100644
a
|
b
|
NFS4Inode::RemoveObject(const char* name, FileType type, ChangeInfo* changeInfo,
|
936 | 936 | AttrValue* values; |
937 | 937 | uint32 count; |
938 | 938 | result = reply.GetAttr(&values, &count); |
939 | | if (result != B_OK) |
| 939 | |
| 940 | if (result != B_OK) { |
| 941 | delete[] values; |
940 | 942 | return result; |
| 943 | } |
941 | 944 | |
942 | 945 | if (count == 0) |
943 | 946 | *fileID = fFileSystem->AllocFileId(); |