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