Opened 10 years ago

Closed 8 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:

Description

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)

break;

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

break;

Change History (2)

comment:1 Changed 8 years ago by compn

  • Owner changed from r_togni@… to reimar

comment:2 Changed 8 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.