mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
fix the bug of raf=null in the close interface of DbSearcher
This commit is contained in:
@@ -59,8 +59,10 @@ public class DbSearcher
|
||||
}
|
||||
|
||||
/**
|
||||
* construct method with self-define std ip2region bianry string support
|
||||
* Thanks to the issue from Wendal at https://gitee.com/lionsoul/ip2region/issues/IILFL
|
||||
* construct method with self-define std ip2region binary string support
|
||||
* Thanks to the issue from Wendal at https://gitee.com/lionsoul/ip2region/issues/IILFL.
|
||||
*
|
||||
* Note: This construtor should be used for memory search ONLY !!!
|
||||
*
|
||||
* @param dbConfig
|
||||
* @param dbBinStr
|
||||
@@ -399,7 +401,9 @@ public class DbSearcher
|
||||
HeaderSip = null; //let gc do its work
|
||||
HeaderPtr = null;
|
||||
dbBinStr = null;
|
||||
raf.close();
|
||||
if ( raf != null ) {
|
||||
raf.close();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user