tree-wide: use mfree more

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-10-16 23:35:39 -04:00
parent d7604756ca
commit 6b430fdb7c
64 changed files with 105 additions and 228 deletions
+1 -3
View File
@@ -80,9 +80,7 @@ Machine* machine_new(Manager *manager, MachineClass class, const char *name) {
fail:
free(m->state_file);
free(m->name);
free(m);
return NULL;
return mfree(m);
}
void machine_free(Machine *m) {
+1 -2
View File
@@ -147,6 +147,5 @@ Operation *operation_free(Operation *o) {
if (o->machine)
LIST_REMOVE(operations_by_machine, o->machine->operations, o);
free(o);
return NULL;
return mfree(o);
}