Skip to content

Mem leak even I close #150

@yejkk

Description

@yejkk

I created an instance using NewSpeechSynthesizerFromConfig and placed it into a pool. If there are no requests within 10 minutes, the instance is released by calling s.speechSynthesizer.Close(), s.audioConfig.Close(), and s.speechConfig.Close(). However, I noticed that memory usage continues to increase steadily.

Upon debugging and inspecting memory, the Go memory usage remains stable, but there seems to be residual memory, likely from CGO, that keeps growing.
Memory stats:
"process_rss_mb": 106, "go_sys_mb": 25, "go_alloc_mb": 5

Is this a memory leak in the C library?

version v1.43.0

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