summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/parse-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/parse-utils.c')
-rw-r--r--libglusterfs/src/parse-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libglusterfs/src/parse-utils.c b/libglusterfs/src/parse-utils.c
index 3934586aa32..f7e9988ab64 100644
--- a/libglusterfs/src/parse-utils.c
+++ b/libglusterfs/src/parse-utils.c
@@ -40,7 +40,7 @@ parser_init (const char *regex)
int rc = 0;
struct parser *parser = NULL;
- parser = MALLOC (sizeof(*parser));
+ parser = GF_MALLOC (sizeof(*parser), gf_common_mt_parser_t);
if (!parser)
goto out;
@@ -48,7 +48,7 @@ parser_init (const char *regex)
if (!parser->regex) {
gf_log (GF_PARSE, GF_LOG_INFO,
"Failed to duplicate regex string!");
- FREE (parser);
+ GF_FREE (parser);
parser = NULL;
goto out;
}
@@ -135,9 +135,9 @@ parser_deinit (struct parser *ptr)
return;
regfree (&ptr->preg);
- FREE (ptr->complete_str);
+ GF_FREE (ptr->complete_str);
GF_FREE (ptr->regex);
- FREE (ptr);
+ GF_FREE (ptr);
}
/**