+Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gfileutils.c (get_contents_regfile): Close the
+ file descriptor. (#75507, Matthias Clasen)
+
Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use $PKG_CONFIG, not pkg-config.
+Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gfileutils.c (get_contents_regfile): Close the
+ file descriptor. (#75507, Matthias Clasen)
+
Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use $PKG_CONFIG, not pkg-config.
+Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gfileutils.c (get_contents_regfile): Close the
+ file descriptor. (#75507, Matthias Clasen)
+
Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use $PKG_CONFIG, not pkg-config.
+Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gfileutils.c (get_contents_regfile): Close the
+ file descriptor. (#75507, Matthias Clasen)
+
Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use $PKG_CONFIG, not pkg-config.
+Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gfileutils.c (get_contents_regfile): Close the
+ file descriptor. (#75507, Matthias Clasen)
+
Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use $PKG_CONFIG, not pkg-config.
+Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gfileutils.c (get_contents_regfile): Close the
+ file descriptor. (#75507, Matthias Clasen)
+
Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use $PKG_CONFIG, not pkg-config.
+Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gfileutils.c (get_contents_regfile): Close the
+ file descriptor. (#75507, Matthias Clasen)
+
Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Use $PKG_CONFIG, not pkg-config.
_("Could not allocate %lu bytes to read file \"%s\""),
(gulong) alloc_size, filename);
- return FALSE;
+ goto error;
}
bytes_read = 0;
_("Failed to read from file '%s': %s"),
filename, g_strerror (errno));
- return FALSE;
+ goto error;
}
}
else if (rc == 0)
*contents = buf;
+ close (fd);
+
return TRUE;
+
+ error:
+
+ close (fd);
+
+ return FALSE;
}
static gboolean