diff options
Diffstat (limited to 'xlators/cluster/map/src/map-helper.c')
| -rw-r--r-- | xlators/cluster/map/src/map-helper.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/map/src/map-helper.c b/xlators/cluster/map/src/map-helper.c index b4c8ad525..ad01b2102 100644 --- a/xlators/cluster/map/src/map-helper.c +++ b/xlators/cluster/map/src/map-helper.c @@ -256,14 +256,15 @@ verify_dir_and_assign_subvol (xlator_t *this,  				goto out;  			} -			tmp_map = CALLOC (1, sizeof (struct map_pattern)); +			tmp_map = GF_CALLOC (1, sizeof (struct map_pattern), +                                             gf_map_mt_map_pattern);  			tmp_map->xl = trav->xlator;  			tmp_map->dir_len = strlen (directory);  			/* make sure that the top level directory starts   			 * with '/' and ends without '/'  			 */ -			tmp_map->directory = strdup (directory); +			tmp_map->directory = gf_strdup (directory);  			if (directory[tmp_map->dir_len - 1] == '/') {  				tmp_map->dir_len--;  			}  | 
