Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
fix opa leak
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido committed Apr 17, 2024
1 parent a500fec commit 79543e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,7 @@ struct sock *camblet_accept(struct sock *sk, int flags, int *err, bool kern)
}
else
{
opa_socket_context_free(opa_socket_ctx);
tcp_connection_context_free(conn_ctx);
}

Expand Down Expand Up @@ -2200,6 +2201,7 @@ int camblet_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
}
else
{
opa_socket_context_free(opa_socket_ctx);
tcp_connection_context_free(conn_ctx);
}

Expand Down

0 comments on commit 79543e5

Please sign in to comment.