diff options
Diffstat (limited to 'xlators/meta/src/subvolumes-dir.c')
-rw-r--r-- | xlators/meta/src/subvolumes-dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/meta/src/subvolumes-dir.c b/xlators/meta/src/subvolumes-dir.c index 00218b1a8ec..59db75e260f 100644 --- a/xlators/meta/src/subvolumes-dir.c +++ b/xlators/meta/src/subvolumes-dir.c @@ -30,7 +30,7 @@ subvolumes_dir_fill (xlator_t *this, inode_t *dir, struct meta_dirent **dp) for (subv = xl->children; subv; subv = subv->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; |