Skip to content

Potential Memory Leak? #193

Open
Open
@yekyam

Description

Hi y'all,
I recently started learning Go, and I wanted to build a small local music player.

Long story short, after running pprof on my program, I get this when I run it on /pprof/heap:

Showing top 10 nodes out of 29
      flat  flat%   sum%        cum   cum%
 6780.27kB 50.16% 50.16%  6780.27kB 50.16%  github.com/hajimehoshi/go-mp3.(*Decoder).ensureFrameStartsAndLength
 2593.27kB 19.19% 69.35%  4665.36kB 34.52%  github.com/hajimehoshi/go-mp3/internal/frame.Read
 2072.09kB 15.33% 84.68%  2072.09kB 15.33%  github.com/hajimehoshi/go-mp3/internal/maindata.getScaleFactorsMpeg1

(Hopefully) I am closing any beep.StreamSeekCloser, but of course I could be wrong. If needed, I'd be happy to attach any relevant code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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