summaryrefslogtreecommitdiff
path: root/libusbhp/libusbhp.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-09-17 11:17:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-09-17 11:17:04 +0200
commit609580d6e9705ba948c59600ffb022a891b31f40 (patch)
treec47ad75146ff45d4b9d386d4d519b6faf2e4d1d8 /libusbhp/libusbhp.cc
parent8ef814812b93b2039b89f8a107d45c2ec21b2a8e (diff)
Fix segfault in dev_list.
Diffstat (limited to 'libusbhp/libusbhp.cc')
-rw-r--r--libusbhp/libusbhp.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/libusbhp/libusbhp.cc b/libusbhp/libusbhp.cc
index 4058c10..16b8c0a 100644
--- a/libusbhp/libusbhp.cc
+++ b/libusbhp/libusbhp.cc
@@ -124,7 +124,6 @@ static int dev_list_remove(struct libusbhp_t *h, const char *path)
struct dev_list_t *pp = p->next;
p->next = pp->next;
free(pp->path);
- free(pp->next);
free(pp);
return 0;
}