summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-08-27 11:53:19 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-08-27 11:53:19 +0000
commit11585f79a9aebf19bfe837b000d93cff2f08db14 (patch)
tree05b3b23dca5633999096d675002aed53543b9904 /hcid/main.c
parent2f1fece0402ce32292bc17dae43e3becbd19683f (diff)
Fix memory leaks in the config file parser
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/main.c b/hcid/main.c
index dd3367b7..567dfab3 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -80,7 +80,7 @@ struct device_opts *alloc_device_opts(char *ref)
exit(1);
}
- device->ref = ref;
+ device->ref = strdup(ref);
device->next = device_list;
device_list = device;