Opened 15 years ago

Last modified 13 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: no Analyzed by developer: no

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 by compn, 13 years ago

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