3d0c/gmf

`NewAudioFrame` has memory leak bug

Opened this issue · 0 comments

In frame_go112.go https://github.com/3d0c/gmf/blob/master/frame_go112.go#L210

Firstly allocate heap memory. If avcodec_fill_audio_frame() fail, the heap memory will leak:

image

(BTW, I miss RAII in C++)