diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2020-01-31 15:27:46 +0000 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-02-03 06:12:15 +0000 |
commit | 34347876bb525e1af19bccafbb753a14b358d3aa (patch) | |
tree | 438d24a26db2f7a1b6e9e45938863646b48518a7 /api | |
parent | c1c2afd920ab6135ffcd0e1ecb25e71449037c9e (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.c | 1 |
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; } |