diff --git a/ChangeLog b/ChangeLog index 683bdcc..00c9f80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-21 Tollef Fog Heen + + * parse.c (parse_package_file): Stop leaking file descriptors. + (Freedesktop #1006) + 2005-02-21 Tollef Fog Heen * pkg-config.1: Get rid of groff warnings when formatting diff --git a/parse.c b/parse.c index 136c6a2..db73a64 100644 --- a/parse.c +++ b/parse.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2001, 2002 Red Hat Inc. + * Copyright (C) 2001, 2002, 2005 Red Hat Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -970,7 +970,8 @@ parse_package_file (const char *path) if (!one_line) verbose_error ("Package file '%s' appears to be empty\n", path); - + + fclose(f); return pkg; }