summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-04-27 08:47:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-27 07:34:43 -0700
commit63c8d8f2998dcbcfd392b67ea68ad3d3ec4a2805 (patch)
tree0507bcf65b24170c78bd14a441fc1106792dadab /xlators
parent2c5a280f9a7ad7eb971db4d55e6ce806c5cdd6bc (diff)
features/access-control: Memory accounting changes
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 329 (Replacing memory allocation functions with mem-type functions) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/access-control/src/access-control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/access-control/src/access-control.c b/xlators/features/access-control/src/access-control.c
index f90184d1a3a..c13648d3c47 100644
--- a/xlators/features/access-control/src/access-control.c
+++ b/xlators/features/access-control/src/access-control.c
@@ -260,7 +260,7 @@ ac_loc_fill (loc_t *loc, inode_t *inode, inode_t *parent, char *path)
if (parent)
loc->parent = inode_ref (parent);
- loc->path = strdup (path);
+ loc->path = gf_strdup (path);
if (!loc->path) {
gf_log (ACTRL, GF_LOG_ERROR, "strdup failed");
goto loc_wipe;
@@ -312,7 +312,7 @@ err:
inode_unref (parent);
if (resolvedpath)
- FREE (resolvedpath);
+ GF_FREE (resolvedpath);
return ret;
}