Miguel Figueiredo, le Sat 01 Jun 2013 11:05:10 +0100, a écrit :
> 2013-06-01 Miguel Figueiredo <el...@debianpt.org>
> 
> * console-client/xkb/compose.c (read_composefile): fclose
> 
> iiuc parse_composefile always returns 0 and this makes the if(err) not
> executing the fclose.
> cppcheck reported this as memory leak.

Applied, thanks.

> diff --git a/console-client/trans.c b/console-client/trans.c
> index 6949af5..8219f97 100644
> --- a/console-client/trans.c
> +++ b/console-client/trans.c
> @@ -844,7 +844,6 @@ console_unregister_consnode (consnode_t cn)
>  error_t
>  console_setup_node (char *path)
>  {
> -  mach_port_t underlying;
>    mach_port_t bootstrap;
>    error_t err;
>    struct stat ul_stat;

Always proofread the patch you are sending for spurious changes :)

Samuel

Reply via email to