From efda1b98f5ef5449687cf9ded8d0b2c82d948885 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 19 Jan 2011 02:08:48 +0000 Subject: free GF_CALLOCed memory by GF_FREE instead of FREE Signed-off-by: Raghavendra Bhat 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 --- libglusterfs/src/dict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index b5da61144d3..ab2487182a1 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -198,7 +198,7 @@ data_copy (data_t *old) FREE (newdata->data); if (newdata->vec) FREE (newdata->vec); - FREE (newdata); + GF_FREE (newdata); gf_log ("dict", GF_LOG_CRITICAL, "@newdata->data || @newdata->vec got NULL from CALLOC()"); @@ -272,7 +272,7 @@ _dict_set (dict_t *this, if (!pair->key) { gf_log ("dict", GF_LOG_CRITICAL, "@pair->key - NULL returned by CALLOC"); - FREE (pair); + GF_FREE (pair); if (key_free) GF_FREE (key); -- cgit