summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-08-23 02:34:31 +0530
committerVijay Bellur <vijay@gluster.com>2011-08-23 10:46:07 -0700
commitf65668427467f07f1b7026498f739254967f5bef (patch)
tree53978b16d5fd2ca389bfbb589b109fa49f08e29a /xlators/features
parent1acef91232abbeb5fbf9a5fce2c71cba0df2a86c (diff)
features/locks: free the string allocated by inode_path
Change-Id: I352b155c065b10590a50a7195de2da40523f5710 BUG: 3468 Reviewed-on: http://review.gluster.com/303 Reviewed-by: Amar Tumballi <amar@gluster.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/locks/src/inodelk.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/xlators/features/locks/src/inodelk.c b/xlators/features/locks/src/inodelk.c
index 40677660f..6fa9f3997 100644
--- a/xlators/features/locks/src/inodelk.c
+++ b/xlators/features/locks/src/inodelk.c
@@ -406,7 +406,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) {
@@ -429,8 +432,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: