Skip to content

Commit

Permalink
Correct probably bad memory handling in allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdelisle committed Feb 18, 2017
1 parent fb8b3f9 commit 043b6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memory/Allocator.c
Expand Up @@ -721,7 +721,7 @@ void Allocator__adopt(struct Allocator* adoptedParent,
}

struct Allocator_List* pl =
Allocator__calloc(childToAdopt, sizeof(struct Allocator_List), 1, file, line);
Allocator__calloc(adoptedParent, sizeof(struct Allocator_List), 1, file, line);
pl->alloc = child;
pl->next = parent->adoptions->children;
parent->adoptions->children = pl;
Expand Down

0 comments on commit 043b6ea

Please sign in to comment.