diff options
Diffstat (limited to 'libglusterfs/src/dict.c')
-rw-r--r-- | libglusterfs/src/dict.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 2e61a3f4e33..c290e0d6240 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -181,8 +181,7 @@ data_copy (data_t *old) err_out: - if (newdata->data) - FREE (newdata->data); + FREE (newdata->data); mem_put (newdata); return NULL; @@ -436,10 +435,8 @@ dict_destroy (dict_t *this) mem_put (this->members); } - if (this->extra_free) - GF_FREE (this->extra_free); - if (this->extra_stdfree) - free (this->extra_stdfree); + GF_FREE (this->extra_free); + free (this->extra_stdfree); if (!this->is_static) mem_put (this); |