From: Arch Librarian Date: Thu, 14 Jul 2005 13:06:15 +0000 (+0000) Subject: 2005-02-21 Tollef Fog Heen X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77d6ced01ed426ee5418bcf939274684f2491791;p=pkg-config 2005-02-21 Tollef Fog Heen Author: tfheen Date: 2005-02-21 08:09:28 GMT 2005-02-21 Tollef Fog Heen * parse.c (parse_package_file): Stop leaking file descriptors. (Freedesktop #1006) --- 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; }