Skip to content

Memleak in basic lambda usage #39

@Mai-Lapyst

Description

@Mai-Lapyst

When using lambdas in a basic setting, they create rather big memleaks:

(define foo (lambda () ()))

or

(defun foo () ())

This makes it sadly impossible to embedd this library into larger, long-running applications like webservices without takeing up large amounts of memory very quickly.


Commit: e0f571b

Command: valgrind --tool=memcheck --leak-check=full --track-origins=yes --show-leak-kinds=all ./target/debug/rust_lisp '(define foo (lambda () ()))'

Valgrind output: https://gist.github.com/Mai-Lapyst/d8a560bf018b04bcf497255772ae8710

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions