[PATCH libXfont] fix dirfd leak on CatalogueRescan()

Kristian Høgsberg krh at bitplanet.net
Mon Jul 30 11:36:33 PDT 2007


Thanks, applied.

On 7/10/07, Ademar de Souza Reis Jr <ademar at mandriva.com.br> wrote:
> ---
>  src/fontfile/catalogue.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/fontfile/catalogue.c b/src/fontfile/catalogue.c
> index 812b050..2a65e86 100644
> --- a/src/fontfile/catalogue.c
> +++ b/src/fontfile/catalogue.c
> @@ -206,6 +206,8 @@ CatalogueRescan (FontPathElementPtr fpe)
>         }
>      }
>
> +    closedir(dir);
> +
>      qsort(cat->fpeList,
>           cat->fpeCount, sizeof cat->fpeList[0], ComparePriority);
>
> --
> 1.5.2.2
>
>



More information about the xorg mailing list