Fix memory leak
This commit is contained in:
parent
62e536e88f
commit
759e37558f
@ -467,10 +467,12 @@ public class GrpcServer extends Server {
|
||||
}
|
||||
|
||||
private static void closeArenaSafe(Arena autoArena) {
|
||||
try {
|
||||
autoArena.close();
|
||||
} catch (Exception ex2) {
|
||||
LOG.error("Failed to close arena", ex2);
|
||||
if (autoArena != null) {
|
||||
try {
|
||||
autoArena.close();
|
||||
} catch (Exception ex2) {
|
||||
LOG.error("Failed to close arena", ex2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user