bmon: unlink list element from list before xfree()
This commit is contained in:
parent
a2c0e3d08e
commit
f7df93bcd3
@ -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