summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-07-25 14:57:32 -0700
committerThomas Graf <tgraf@suug.ch>2014-07-25 14:57:32 -0700
commitcbcd8dd8f22e829c12f1dac008e700d2961ba71e (patch)
tree6a368c89f3e8c5feb3d817353b8d793ce2ac10c1
parenta2c0e3d08e6d0178ae7ceada5c5864ac4b9b86bf (diff)
parentf7df93bcd30064c60f9999eb05f234fc974d1e8b (diff)
Merge pull request #13 from valinskas/zv/fix-segfault
bmon: unlink list element from list before xfree()
-rw-r--r--src/unit.c1
1 files changed, 1 insertions, 0 deletions
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);
}