diff --git a/conn/session.c b/conn/session.c index 65d31ab..f9b93a8 100644 --- a/conn/session.c +++ b/conn/session.c @@ -45,6 +45,8 @@ int libp2p_session_context_free(struct SessionContext* context) { if (context->default_stream != NULL) context->default_stream->close(context); context->default_stream = NULL; + context->insecure_stream = NULL; + context->secure_stream = NULL; free(context); } return 1;