diff options
| -rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 2 | ||||
| -rw-r--r-- | xlators/storage/posix/src/posix.c | 5 | 
2 files changed, 1 insertions, 6 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 2920f318709..ea469bf6109 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -641,7 +641,7 @@ posix_lookup_xattr_fill (xlator_t *this, const char *real_path, loc_t *loc,                  list = _gf_true;          } -        xattr = get_new_dict(); +        xattr = dict_new ();          if (!xattr) {                  goto out;          } diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 8ac3c5d4b68..ccd441a2d62 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -199,9 +199,6 @@ parent:          op_ret = entry_ret;  out: -        if (xattr) -                dict_ref (xattr); -          if (!op_ret && !gfidless && uuid_is_null (buf.ia_gfid)) {                  gf_log (this->name, GF_LOG_ERROR, "buf->ia_gfid is null for "                          "%s", (real_path) ? real_path: ""); @@ -5210,8 +5207,6 @@ posix_readdirp_fill (xlator_t *this, fd_t *fd, gf_dirent_t *entries, dict_t *dic                                  posix_entry_xattr_fill (this, entry->inode,                                                          fd, entry->d_name,                                                          dict, &stbuf); -                        if (entry->dict) -                                dict_ref (entry->dict);                  }                  entry->d_stat = stbuf;  | 
