diff options
Diffstat (limited to 'xlators')
| -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 8cd5e0b3e68..aa2b2855d93 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:  | 
