Skip to content

ssl_context/3 leaks memory #41

@triska

Description

@triska

In packages/ssl, let alloc.pl consist of:

:- use_module(library(ssl)).

alloc :-
	ssl_context(server, _SSL,
		    [ certificate_file('etc/server/server-cert.pem'),
                      key_file('etc/server/server-key.pem'),
		      password(apenoot1)
		    ]),
        alloc.

Please run the test case:

$ swipl -g alloc alloc.pl

This allocates more and more SSL contexts that are not garbage collected. If possible, please make them collectible and free them when they are no longer needed. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions