Merge pull request #13 from valinskas/zv/fix-segfault
bmon: unlink list element from list before xfree()
This commit is contained in:
commit
cbcd8dd8f2
@ -124,6 +124,7 @@ void fraction_free(struct fraction *f)
|
|||||||
if (!f)
|
if (!f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
list_del(&f->f_list);
|
||||||
xfree(f->f_name);
|
xfree(f->f_name);
|
||||||
xfree(f);
|
xfree(f);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user