summaryrefslogtreecommitdiff
path: root/ACE/ace/SOCK_SEQPACK_Connector.cpp
diff options
context:
space:
mode:
authorAdam Mitz <mitza@ociweb.com>2015-11-06 17:07:11 -0600
committerAdam Mitz <mitza@ociweb.com>2015-11-06 17:07:11 -0600
commitac5e1702c9f9bee9f1f7bfce8c1a6f3847ea6b4b (patch)
tree0e70d1f51c39e688a05a6cdc2af58408222e4a0d /ACE/ace/SOCK_SEQPACK_Connector.cpp
parent5272b5b81f92c298cb998b5bb0b0dbca3e7f29fe (diff)
downloadATCD-ac5e1702c9f9bee9f1f7bfce8c1a6f3847ea6b4b.tar.gz
Merged branch ace-face-safety (FACE Safety Profile import from OCITAO).
Diffstat (limited to 'ACE/ace/SOCK_SEQPACK_Connector.cpp')
-rw-r--r--ACE/ace/SOCK_SEQPACK_Connector.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ACE/ace/SOCK_SEQPACK_Connector.cpp b/ACE/ace/SOCK_SEQPACK_Connector.cpp
index b941c2f6d3d..92787f9a5e3 100644
--- a/ACE/ace/SOCK_SEQPACK_Connector.cpp
+++ b/ACE/ace/SOCK_SEQPACK_Connector.cpp
@@ -133,7 +133,11 @@ ACE_SOCK_SEQPACK_Connector::shared_connect_start (ACE_SOCK_SEQPACK_Association &
// representations of the primary and secondary
// addresses.
sockaddr_in* local_inet_addrs = 0;
+#if defined(ACE_HAS_ALLOC_HOOKS)
+ ACE_ALLOCATOR_NORETURN (local_inet_addrs, static_cast<sockaddr_in*>(ACE_Allocator::instance()->malloc(sizeof(sockaddr_in) * (num_addresses))));
+#else
ACE_NEW_NORETURN (local_inet_addrs, sockaddr_in[num_addresses]);
+#endif
if (!local_inet_addrs)
return -1;
@@ -215,7 +219,11 @@ ACE_SOCK_SEQPACK_Connector::shared_connect_start (ACE_SOCK_SEQPACK_Association &
}
#endif /* ACE_HAS_LKSCTP */
+#if defined (ACE_HAS_ALLOC_HOOKS)
+ ACE_Allocator::instance()->free(local_inet_addrs);
+#else
delete [] local_inet_addrs;
+#endif /* ACE_HAS_ALLOC_HOOKS */
}
// Enable non-blocking, if required.