summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2020-01-31 15:27:46 +0000
committerAmar Tumballi <amar@kadalu.io>2020-02-03 06:12:15 +0000
commit34347876bb525e1af19bccafbb753a14b358d3aa (patch)
tree438d24a26db2f7a1b6e9e45938863646b48518a7 /api
parentc1c2afd920ab6135ffcd0e1ecb25e71449037c9e (diff)
libgfapi: fix resource leak
This patch fixes resource leak in glfs-fops.c. CID : 1403873 : Resource leak updates: bz#789278 Change-Id: I589d4d65d2b074801f7b4b0afd7dc4607d79420e Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'api')
-rw-r--r--api/src/glfs-fops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index 603f37afb09..8d6d11423e8 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -5797,6 +5797,7 @@ glfs_cbk_upcall_syncop(void *opaque)
goto out;
} else if (ret) {
gf_smsg(THIS->name, GF_LOG_ERROR, errno, API_MSG_INVALID_ENTRY, NULL);
+ GLFS_FREE(up_arg);
goto out;
}