summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-04-29 09:32:43 +0530
committerAnand Avati <avati@redhat.com>2012-05-03 13:03:51 -0700
commitc204e8c2713678e990b74c98f9eda8f18d714b3d (patch)
tree9126657bc3c63d071ff314e8d99fe5b4fd105754 /xlators/protocol/client/src
parenta2ca310cd334bc4c3387107a0931f695efac5ba9 (diff)
protocol: fix memory leak of lk-owner buffer in *lk() calls
Change-Id: I7fb0e1757c5e04b1a2609c9822ac79301808f671 Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 768330 Reviewed-on: http://review.gluster.com/3244 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/protocol/client/src')
-rw-r--r--xlators/protocol/client/src/client3_1-fops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c
index be4322f2b3c..3289da369ce 100644
--- a/xlators/protocol/client/src/client3_1-fops.c
+++ b/xlators/protocol/client/src/client3_1-fops.c
@@ -2186,6 +2186,9 @@ out:
if (rsp.xdata.xdata_val)
free (rsp.xdata.xdata_val);
+ if (rsp.flock.lk_owner.lk_owner_val)
+ free (rsp.flock.lk_owner.lk_owner_val);
+
if (xdata)
dict_unref (xdata);