diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-09-20 11:03:32 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-09-19 22:39:56 -0700 |
commit | b5b0bb056391659802099908f4bccde5afdb9e34 (patch) | |
tree | d9814a8c11b0372b396c6ede9a0196b72de86334 /xlators/features | |
parent | 8d4d8088c73f2ffc60b8e5c23a33e6b996fb5053 (diff) |
features/locks: free the string allocated by inode_path
Change-Id: I1b7d4059610713b92c4bb78676c3b48335e3a0fe
BUG: 3468
Reviewed-on: http://review.gluster.com/465
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/locks/src/inodelk.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xlators/features/locks/src/inodelk.c b/xlators/features/locks/src/inodelk.c index 8cd5e0b3e..aa2b2855d 100644 --- a/xlators/features/locks/src/inodelk.c +++ b/xlators/features/locks/src/inodelk.c @@ -407,7 +407,10 @@ release_inode_locks_of_transport (xlator_t *this, pl_dom_list_t *dom, l->owner); list_add (&l->blocked_locks, &released); - + if (path) { + GF_FREE (path); + path = NULL; + } } list_for_each_entry_safe (l, tmp, &dom->inodelk_list, list) { @@ -430,8 +433,10 @@ release_inode_locks_of_transport (xlator_t *this, pl_dom_list_t *dom, path, trans, (uint64_t) l->client_pid, l->owner); - - + if (path) { + GF_FREE (path); + path = NULL; + } } } unlock: |