On 03/29/11 08:08 AM, Tiago Vignatti wrote:
> Signed-off-by: Tiago Vignatti <[email protected]>
> ---
> Alan, I guess you can S-o-b this one?
> 
>  hw/xfree86/common/xf86Init.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
> index e664ce4..0b36163 100644
> --- a/hw/xfree86/common/xf86Init.c
> +++ b/hw/xfree86/common/xf86Init.c
> @@ -1414,8 +1414,10 @@ xf86LoadModules(char **list, pointer *optlist)
>       name = xf86NormalizeName(list[i]);
>  
>       /* Skip empty names */
> -     if (name == NULL || *name == '\0')
> +     if (name == NULL || *name == '\0') {
> +         free(name);
>           continue;
> +     }
>  
>       /* Replace obsolete keyboard driver with kbd */
>       if (!xf86NameCmp(name, "keyboard")) {

Sure,
Signed-off-by: Alan Coopersmith <[email protected]>


-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to