From bb01111f50f2585429028c408932416d31c6d316 Mon Sep 17 00:00:00 2001 From: Barak Sason Date: Mon, 19 Aug 2019 10:34:31 +0300 Subject: 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 --- libglusterfs/src/graph.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 772820220fd..bbc5ad68d94 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; } } -- cgit