fix the may comming bug
This commit is contained in:
parent
56c83f3895
commit
f56f6175de
|
|
@ -61,7 +61,11 @@ IP2R_API uint_t ip2region_destroy(ip2region_t ip2rObj)
|
||||||
ip2rObj->HeaderPtr = NULL;
|
ip2rObj->HeaderPtr = NULL;
|
||||||
|
|
||||||
//close the db file resource
|
//close the db file resource
|
||||||
fclose(ip2rObj->dbHandler);
|
if ( ip2rObj->dbHandler != NULL )
|
||||||
|
{
|
||||||
|
fclose(ip2rObj->dbHandler);
|
||||||
|
ip2rObj->dbHandler = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue