[MPlayer-dev-eng] [PATCH] input.c uninit memory free fix

Sascha Sommer saschasommer at freenet.de
Sat Oct 30 12:42:33 CEST 2004


On Saturday 23 October 2004 23:47, Wei Jiang wrote:
> Tested on XBMC pre5 source base

Applied a modified version, because

> diff -u -r1.102 input.c
> --- input/input.c	20 Oct 2004 20:07:49 -0000	1.102
> +++ input/input.c	23 Oct 2004 21:44:23 -0000
> @@ -1333,6 +1333,7 @@
>      free(binds[i].cmd);
>
>    free(binds);
> +  binds = NULL;
>

has to be after the function call not inside it.

Sascha




More information about the MPlayer-dev-eng mailing list