From 6edaf694e391d91f42a324da6d3a413d66ae74b9 Mon Sep 17 00:00:00 2001 From: Barak Sason Date: Sun, 18 Aug 2019 17:52:04 +0300 Subject: storage/posix - Fixing a coverity issue Fixed a resource leak of variable 'pfd' CID: 1400673 Updates: bz#789278 Change-Id: I78e1e8a89e0604b56e35a75c25d436b35db096c3 Signed-off-by: Barak Sason --- xlators/storage/posix/src/posix-inode-fd-ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators') diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c index 8bd8692f86b..6d2b3106a9a 100644 --- a/xlators/storage/posix/src/posix-inode-fd-ops.c +++ b/xlators/storage/posix/src/posix-inode-fd-ops.c @@ -1552,6 +1552,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; } -- cgit