diff options
| author | Sven Moritz Hallberg <pesco@khjk.org> | 2010-06-03 12:31:46 +0200 | 
|---|---|---|
| committer | Sven Moritz Hallberg <pesco@khjk.org> | 2010-06-03 12:31:46 +0200 | 
| commit | 3f81999c20852f14a5fb27a6ef6c5ea44db61a4d (patch) | |
| tree | 14fa6a79d444049e758be853277270117e11692b /lib | |
| parent | fc34fb5d0b717d90edfc7ed78f11166eb23c536e (diff) | |
| parent | 2e44b1f12fb58a6969a8fbaf2946d6ecdace484a (diff) | |
merge in bitlbee 1.2.4
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ini.c | 8 | 
1 files changed, 6 insertions, 2 deletions
| @@ -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;  } | 
