[dconf] Close profile file after reading (don't leak fd)
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] Close profile file after reading (don't leak fd)
- Date: Mon, 19 Jul 2010 00:51:00 +0000 (UTC)
commit 9dd5ddf0e32d944008c806af780bc7f0c2498bfb
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Jul 18 20:50:38 2010 -0400
Close profile file after reading (don't leak fd)
engine/dconf-engine.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index b3ff37b..baed645 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -210,6 +210,7 @@ dconf_engine_load_profile (const gchar *profile,
*dbs = g_renew (gchar *, *dbs, *n_dbs);
g_free (filename);
+ fclose (f);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]