fix the bug of raf=null in the close interface of DbSearcher
This commit is contained in:
parent
5767b1e16e
commit
a8f77a9638
|
|
@ -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;
|
||||
if ( raf != null ) {
|
||||
raf.close();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue