Opened 12 years ago

Closed 10 years ago

#1341 closed defect (fixed)

libmpdemux/demux_lavf.c:230: Memory leak: wf

Reported by: dvice_null@… Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


In file libmpdemux/demux_lavf.c:230
variable wf leaks memory if "break;" is called before the memory is actually used anywhere:

WAVEFORMATEX *wf= calloc(sizeof(WAVEFORMATEX) + codec->extradata_size, 1);
sh_audio_t* sh_audio;
if(priv->audio_streams >= MAX_A_STREAMS)


sh_audio=new_sh_audio(demuxer, i);
mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_AudioID, "lavf", i);


Change History (2)

comment:1 Changed 10 years ago by compn

  • Owner changed from r_togni@… to reimar

comment:2 Changed 10 years ago by reimar

  • Resolution set to fixed
  • Status changed from new to closed

Seems this has been fixed quite some time ago.

Note: See TracTickets for help on using tickets.