This commit is contained in:
Jack Halford 2020-01-07 16:49:39 +01:00
parent e1dbcf80da
commit c3dcb449cb

View file

@ -45,7 +45,7 @@ pub const Task = struct {
pub fn create(entrypoint: usize) !*Task { pub fn create(entrypoint: usize) !*Task {
// Allocate and initialize the thread structure. // Allocate and initialize the thread structure.
var t = try vmem.create(Task); var t = try vmem.create(Task);
errdefer vmem.free(t); errdefer vmem.destroy(t);
t.time_used = 0; t.time_used = 0;
t.state = .ReadyToRun; t.state = .ReadyToRun;