14e44be7b0
Resolves: bz#1234220 bz#1286171 bz#1487177 bz#1524457 bz#1640573 Resolves: bz#1663557 bz#1667954 bz#1683602 bz#1686897 bz#1721355 Resolves: bz#1748865 bz#1750211 bz#1754391 bz#1759875 bz#1761531 Resolves: bz#1761932 bz#1763124 bz#1763129 bz#1764091 bz#1775637 Resolves: bz#1776901 bz#1781550 bz#1781649 bz#1781710 bz#1783232 Resolves: bz#1784211 bz#1784415 bz#1786516 bz#1786681 bz#1787294 Resolves: bz#1787310 bz#1787331 bz#1787994 bz#1790336 bz#1792873 Resolves: bz#1794663 bz#1796814 bz#1804164 bz#1810924 bz#1815434 Resolves: bz#1836099 bz#1837467 bz#1837926 bz#1838479 bz#1839137 Resolves: bz#1844359 Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From 3943fce5818a353117fc1c492e6383434d742979 Mon Sep 17 00:00:00 2001
|
|
From: Barak Sason <bsasonro@redhat.com>
|
|
Date: Sun, 18 Aug 2019 17:52:04 +0300
|
|
Subject: [PATCH 427/449] storage/posix - Fixing a coverity issue
|
|
|
|
Fixed a resource leak of variable 'pfd'
|
|
|
|
backport of https://review.gluster.org/#/c/glusterfs/+/23261/
|
|
>CID: 1400673
|
|
>Updates: bz#789278
|
|
>Change-Id: I78e1e8a89e0604b56e35a75c25d436b35db096c3
|
|
>Signed-off-by: Barak Sason <bsasonro@redhat.com>
|
|
|
|
BUG: 1787310
|
|
Change-Id: I78e1e8a89e0604b56e35a75c25d436b35db096c3
|
|
Signed-off-by: Barak Sason Rofman <bsasonro@redhat.com>
|
|
Reviewed-on: https://code.engineering.redhat.com/gerrit/202563
|
|
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
---
|
|
xlators/storage/posix/src/posix-inode-fd-ops.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c
|
|
index bcce06e..5748b9f 100644
|
|
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
|
|
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
|
|
@@ -1603,6 +1603,7 @@ posix_open(call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
|
|
if (op_ret == -1) {
|
|
gf_msg(this->name, GF_LOG_ERROR, errno, P_MSG_FSTAT_FAILED,
|
|
"pre-operation fstat failed on fd=%p", fd);
|
|
+ GF_FREE(pfd);
|
|
goto out;
|
|
}
|
|
|
|
--
|
|
1.8.3.1
|
|
|