summaryrefslogtreecommitdiffstats
path: root/xlators/meta/src/graph-dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/meta/src/graph-dir.c')
-rw-r--r--xlators/meta/src/graph-dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/meta/src/graph-dir.c b/xlators/meta/src/graph-dir.c
index 541e806ddb5..c3a6e8b78e1 100644
--- a/xlators/meta/src/graph-dir.c
+++ b/xlators/meta/src/graph-dir.c
@@ -45,7 +45,7 @@ graph_dir_fill (xlator_t *this, inode_t *inode, struct meta_dirent **dp)
for (xl = graph->first; xl; xl = xl->next)
count++;
- dirents = GF_CALLOC (sizeof (*dirents), count, gf_meta_mt_dirents_t);
+ dirents = GF_MALLOC (sizeof (*dirents) * count, gf_meta_mt_dirents_t);
if (!dirents)
return -1;