summaryrefslogtreecommitdiffstats
path: root/xlators/experimental
diff options
context:
space:
mode:
authorZhou Zhengping <johnzzpcrystal@gmail.com>2016-07-21 21:36:23 -0400
committerJeff Darcy <jdarcy@redhat.com>2016-07-22 08:12:15 -0700
commit99e1686638c26d1a3bb7d66c8a7fd3d93d07e75d (patch)
tree1e54a70f584d92e666d9ea919accee1595ce362a /xlators/experimental
parent370197f6e8413c0c4c13571f1c5b613bfa1e50d5 (diff)
jbr: coverity, resource leak
Change-Id: I62428808ce52569ff0298b0fcdd07cbaec1621dc BUG: 1358944 CID: 1357871 Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com> Reviewed-on: http://review.gluster.org/14977 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/experimental')
-rw-r--r--xlators/experimental/jbr-server/src/jbr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/experimental/jbr-server/src/jbr.c b/xlators/experimental/jbr-server/src/jbr.c
index 68badb85079..afdbc5d9f4a 100644
--- a/xlators/experimental/jbr-server/src/jbr.c
+++ b/xlators/experimental/jbr-server/src/jbr.c
@@ -1218,10 +1218,12 @@ jbr_open_term (call_frame_t *frame, xlator_t *this, dict_t *xdata)
/* Success! */
STACK_UNWIND_STRICT (ipc, frame, 0, 0, NULL);
+ GF_FREE (path);
return;
err:
STACK_UNWIND_STRICT (ipc, frame, -1, op_errno, NULL);
+ GF_FREE (path);
}