﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11246	contrib/gis/utils/geoip.py GeoIP leaks file handles	andrewfox	jbronn	"The GeoIP wrapper object in contrib.gis.utils.geoip.py does not seem to clean the referenced GeoIP c library database fopen'd files up.  The __init__ of GeoIP proceeds to load the city and the country dbs via the geoip c library in line 188 but does not ever seem to properly cleanup the opened dbs by calling the GeoIP_delete function in the same C library.  This leaves file handles open to the various dat files which can overwealm the ulimits for certain process configurations.

Workaround is to manually call the delete functon on the self._city and self._country via ctypes but seems like it should be handled by the __del__ of the GeoIP object."		closed	GIS	1.0		fixed	geodjango, gis, geoip, ctype, leak, file handle		Unreviewed	0	0	0	0	0	0
