diff options
| -rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 959afe873..aba567233 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -1843,10 +1843,13 @@ dht_vgetxattr_fill_and_set (dht_local_t *local, dict_t **dict, xlator_t *this,          } else {                  gf_log (this->name, GF_LOG_WARNING,                          "Unknown local->xsel (%s)", local->xsel); +                GF_FREE (xattr_buf);                  goto out;          }          ret = dict_set_dynstr (*dict, local->xsel, xattr_buf); +        if (ret) +                GF_FREE (xattr_buf);          GF_FREE (local->xattr_val);   out:  | 
