[vlc-devel] [PATCH 1/1] packetizer: flac: reduce memory allocations

Francois Cartegnie fcvlcdev at free.fr
Fri Nov 21 18:54:59 CET 2014


Le 21/11/2014 07:26, Tristan Matthews a écrit :

> +            p_sys->p_buf = realloc(p_sys->p_buf, p_sys->i_frame_size);
> +            if (!p_sys->p_buf)
> +                return NULL;

Realloc code is wrong and then leaking.
see malloc(3), last line of return value.

Francois




More information about the vlc-devel mailing list