diff options
author | Barak Sason <bsasonro@redhat.com> | 2019-08-19 10:34:31 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-08-20 09:35:01 +0000 |
commit | bb01111f50f2585429028c408932416d31c6d316 (patch) | |
tree | acd1793639f01c47c9a14cac7063e8ce29d5e49e /libglusterfs/src | |
parent | 2fe243d0561c19009964003aa2ced7c695a46d17 (diff) | |
download | glusterfs-bb01111f50f2585429028c408932416d31c6d316.tar.gz glusterfs-bb01111f50f2585429028c408932416d31c6d316.tar.xz glusterfs-bb01111f50f2585429028c408932416d31c6d316.zip |
libglusterfs - fixing a coverity issue
Fixed resource leak of variable volfile_obj
CID: 1402936
Updates: bz#789278
Change-Id: I1537187e13693686f4ffca891dc1df287fab7a41
Signed-off-by: Barak Sason <bsasonro@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/graph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 772820220f..bbc5ad68d9 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -1763,6 +1763,7 @@ glusterfs_process_svc_attach_volfp(glusterfs_ctx_t *ctx, FILE *fp, if (strcmp(ctx->cmd_args.process_name, "glustershd") == 0) { ret = glusterfs_update_mux_pid(dict, volfile_obj); if (ret == -1) { + GF_FREE(volfile_obj); goto out; } } |