--- a/src/java.base/unix/native/libnet/net_util_md.c Fri Aug 10 14:35:44 2018 +0100
+++ b/src/java.base/unix/native/libnet/net_util_md.c Fri Aug 10 15:02:30 2018 +0100
@@ -584,6 +584,8 @@
if (loRoutesTemp == 0) {
free(loRoutes);
+ loRoutes = NULL;
+ nRoutes = 0;
fclose (f);
return;
}