Merge pull request #13 from valinskas/zv/fix-segfault
bmon: unlink list element from list before xfree()
This commit is contained in:
		| @ -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); | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user