From 609580d6e9705ba948c59600ffb022a891b31f40 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 17 Sep 2013 11:17:04 +0200 Subject: Fix segfault in dev_list. --- libusbhp/libusbhp.cc | 1 - 1 file changed, 1 deletion(-) 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; } -- cgit v1.2.3