Skip to content

Memory leak when exceptions are raised #386

@ankane

Description

@ankane

Hi, it looks like there's a memory leak when functions/methods raise an exception. I'm seeing this with Faiss Ruby with rb_check_frozen (CI logs) as well as the minimal function below:

Rice::define_global_function("hello", []() {
  throw std::runtime_error("error");
});

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