From f7df93bcd30064c60f9999eb05f234fc974d1e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Z=CC=8Cilvinas=20Valinskas?= Date: Sun, 20 Jul 2014 23:56:07 +0300 Subject: bmon: unlink list element from list before xfree() --- src/unit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unit.c b/src/unit.c index ab4cbd8..6f3c577 100644 --- a/src/unit.c +++ b/src/unit.c @@ -124,6 +124,7 @@ void fraction_free(struct fraction *f) if (!f) return; + list_del(&f->f_list); xfree(f->f_name); xfree(f); } -- cgit v1.2.3