fix the may comming bug

This commit is contained in:
狮子的魂 2015-11-08 20:41:00 +08:00
parent 56c83f3895
commit f56f6175de
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ IP2R_API uint_t ip2region_destroy(ip2region_t ip2rObj)
ip2rObj->HeaderPtr = NULL;
//close the db file resource
if ( ip2rObj->dbHandler != NULL )
{
fclose(ip2rObj->dbHandler);
ip2rObj->dbHandler = NULL;
}
return 1;
}