Browse Source

Apply madafoo's change as-is from long ago which I managed to somehow misunderstood and refused for a really long time :(

Caleb James DeLisle 6 years ago
parent
commit
7f55d9bfb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      memory/Allocator.c

+ 1 - 1
memory/Allocator.c

@@ -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;