Blame SPECS/0427-storage-posix-Fixing-a-coverity-issue.patch

Packit Service 150ff0
From 3943fce5818a353117fc1c492e6383434d742979 Mon Sep 17 00:00:00 2001
Packit Service 150ff0
From: Barak Sason <bsasonro@redhat.com>
Packit Service 150ff0
Date: Sun, 18 Aug 2019 17:52:04 +0300
Packit Service 150ff0
Subject: [PATCH 427/449] storage/posix - Fixing a coverity issue
Packit Service 150ff0
Packit Service 150ff0
Fixed a resource leak of variable 'pfd'
Packit Service 150ff0
Packit Service 150ff0
backport of https://review.gluster.org/#/c/glusterfs/+/23261/
Packit Service 150ff0
>CID: 1400673
Packit Service 150ff0
>Updates: bz#789278
Packit Service 150ff0
>Change-Id: I78e1e8a89e0604b56e35a75c25d436b35db096c3
Packit Service 150ff0
>Signed-off-by: Barak Sason <bsasonro@redhat.com>
Packit Service 150ff0
Packit Service 150ff0
BUG: 1787310
Packit Service 150ff0
Change-Id: I78e1e8a89e0604b56e35a75c25d436b35db096c3
Packit Service 150ff0
Signed-off-by: Barak Sason Rofman <bsasonro@redhat.com>
Packit Service 150ff0
Reviewed-on: https://code.engineering.redhat.com/gerrit/202563
Packit Service 150ff0
Tested-by: RHGS Build Bot <nigelb@redhat.com>
Packit Service 150ff0
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
Packit Service 150ff0
---
Packit Service 150ff0
 xlators/storage/posix/src/posix-inode-fd-ops.c | 1 +
Packit Service 150ff0
 1 file changed, 1 insertion(+)
Packit Service 150ff0
Packit Service 150ff0
diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c
Packit Service 150ff0
index bcce06e..5748b9f 100644
Packit Service 150ff0
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
Packit Service 150ff0
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
Packit Service 150ff0
@@ -1603,6 +1603,7 @@ posix_open(call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
Packit Service 150ff0
         if (op_ret == -1) {
Packit Service 150ff0
             gf_msg(this->name, GF_LOG_ERROR, errno, P_MSG_FSTAT_FAILED,
Packit Service 150ff0
                    "pre-operation fstat failed on fd=%p", fd);
Packit Service 150ff0
+            GF_FREE(pfd);
Packit Service 150ff0
             goto out;
Packit Service 150ff0
         }
Packit Service 150ff0
 
Packit Service 150ff0
-- 
Packit Service 150ff0
1.8.3.1
Packit Service 150ff0