aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSven Moritz Hallberg <pesco@khjk.org>2010-06-03 12:31:46 +0200
committerSven Moritz Hallberg <pesco@khjk.org>2010-06-03 12:31:46 +0200
commit3f81999c20852f14a5fb27a6ef6c5ea44db61a4d (patch)
tree14fa6a79d444049e758be853277270117e11692b /lib
parentfc34fb5d0b717d90edfc7ed78f11166eb23c536e (diff)
parent2e44b1f12fb58a6969a8fbaf2946d6ecdace484a (diff)
merge in bitlbee 1.2.4
Diffstat (limited to 'lib')
-rw-r--r--lib/ini.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ini.c b/lib/ini.c
index d9900aeb..aa291bb2 100644
--- a/lib/ini.c
+++ b/lib/ini.c
@@ -42,12 +42,16 @@ ini_t *ini_open( char *file )
ini->file[ini->size] = 0;
ini->cur = ini->file;
ini->c_section = "";
+
+ close( fd );
+
return ini;
}
-
- g_free( ini );
+
if( fd >= 0 )
close( fd );
+
+ ini_close( ini );
return NULL;
}