Skip to content

Commit

Permalink
revert to use mem_acquire
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Oct 2, 2024
1 parent 1739466 commit 9325b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/posix/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ static void s_socket_accept_event(
AWS_LOGF_DEBUG(
AWS_LS_IO_SOCKET, "id=%p fd=%d: incoming connection", (void *)socket, socket->io_handle.data.fd);

struct aws_socket *new_sock = aws_mem_acquire(socket->allocator, 1, sizeof(struct aws_socket));
struct aws_socket *new_sock = aws_mem_acquire(socket->allocator, sizeof(struct aws_socket));

if (!new_sock) {
close(in_fd);
Expand Down

0 comments on commit 9325b01

Please sign in to comment.