aboutsummaryrefslogtreecommitdiff
path: root/src/binds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/binds.c')
-rw-r--r--src/binds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/binds.c b/src/binds.c
index a710278..9e268b4 100644
--- a/src/binds.c
+++ b/src/binds.c
@@ -51,6 +51,7 @@ struct imv_binds *imv_binds_create(void)
void imv_binds_free(struct imv_binds *binds)
{
destroy_bind_node(&binds->bind_tree);
+ list_deep_free(binds->keys);
free(binds);
}
@@ -83,7 +84,7 @@ enum bind_result imv_binds_add(struct imv_binds *binds, const struct list *keys,
/* Create our new node */
next_node = malloc(sizeof(struct bind_node));
init_bind_node(next_node);
- next_node->key = strdup(keys->items[i]);
+ next_node->key = keys->items[i];
list_append(node->suffixes, next_node);
} else {
next_node = node->suffixes->items[child_index];