diff options
Diffstat (limited to 'xlators/features/marker/src/marker.c')
-rw-r--r-- | xlators/features/marker/src/marker.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index e388bf85d2b..b91cc8f435a 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -2963,19 +2963,11 @@ marker_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this, continue; } - loc.path = gf_strdup (resolvedpath); - if (!loc.path) { - gf_log (this->name, GF_LOG_ERROR, "strdup of path " - "failed for the entry %s (path: %s)", - entry->d_name, resolvedpath); - loc_wipe (&loc); - continue; - } + loc.path = resolvedpath; + resolvedpath = NULL; mq_xattr_state (this, &loc, entry->dict, entry->d_stat); loc_wipe (&loc); - GF_FREE (resolvedpath); - resolvedpath = NULL; ret = marker_key_set_ver (this, entry->dict); if (ret < 0) { |