summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/trie.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/trie.c')
-rw-r--r--libglusterfs/src/trie.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libglusterfs/src/trie.c b/libglusterfs/src/trie.c
index b7c59784..f96bbebf 100644
--- a/libglusterfs/src/trie.c
+++ b/libglusterfs/src/trie.c
@@ -114,8 +114,7 @@ trienode_free (trienode_t *node)
trienode_free (trav);
}
- if (node->data)
- GF_FREE (node->data);
+ GF_FREE (node->data);
GF_FREE (node);
}
@@ -373,8 +372,7 @@ trie_measure_vec (trie_t *trie, const char *word, struct trienodevec *nodevec)
static int
trienode_reset (trienode_t *node, void *data)
{
- if (node->data)
- GF_FREE (node->data);
+ GF_FREE (node->data);
return 0;
}