From 63c8d8f2998dcbcfd392b67ea68ad3d3ec4a2805 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 27 Apr 2010 08:47:40 +0000 Subject: features/access-control: Memory accounting changes Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 329 (Replacing memory allocation functions with mem-type functions) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329 --- xlators/features/access-control/src/access-control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/features') 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; } -- cgit