Skip to content
Browse files

Endpoint allocator should not be forked in DIC.

  • Loading branch information...
1 parent 34dcc99 commit 5ddc35d56deda3a7f40dbaa42219a482173ac5b6 Caleb James DeLisle committed Dec 8, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 net/DefaultInterfaceController.c
View
6 net/DefaultInterfaceController.c
@@ -376,10 +376,8 @@ static int registerPeer(struct InterfaceController* ifController,
return InterfaceController_registerPeer_OUT_OF_SPACE;
}
- struct Allocator* epAllocator =
- externalInterface->allocator->child(externalInterface->allocator);
-
- struct Endpoint* ep = epAllocator->calloc(sizeof(struct Endpoint), 1, epAllocator);
+ struct Allocator* epAllocator = externalInterface->allocator;
+ struct Endpoint* ep = Allocator_calloc(epAllocator, sizeof(struct Endpoint), 1);
int setIndex = Map_OfEndpointsByKey_put(&ep, &ic->endpointSet);
ep->handle = ic->endpointSet.handles[setIndex];
Identity_set(ep);

0 comments on commit 5ddc35d

Please sign in to comment.
Something went wrong with that request. Please try again.