Opened 11 years ago

Last modified 9 years ago

#1350 new defect

libmpcodecs/ad_mpc.c:119: Memory leak: cd

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

Description

In file libmpcodecs/ad_mpc.c:119:
Variable cd is leaking memory if 0 is returned:

context_t *cd = malloc(sizeof(context_t));

if (!sh->wf
(sh->wf->cbSize < 6 * 4)) {

mp_msg(MSGT_DECAUDIO, MSGL_FATAL, "Missing extradata!\n");
return 0;

}

Change History (1)

comment:1 Changed 9 years ago by compn

  • Owner changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.