summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-01-19 02:08:48 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-01-27 12:17:55 -0800
commitefda1b98f5ef5449687cf9ded8d0b2c82d948885 (patch)
tree22adb83b353d5ba0f6287d0e1c5b602a4aabc4cb /libglusterfs
parent89f556574552abe80d9afe155eb366634375846c (diff)
free GF_CALLOCed memory by GF_FREE instead of FREE
Signed-off-by: Raghavendra Bhat <raghavendrabhat@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 'libglusterfs')
-rw-r--r--libglusterfs/src/dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c
index b5da61144..ab2487182 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);