--- old/src/java.desktop/unix/native/common/awt/fontpath.c 2016-12-21 23:30:15.985281388 +0530 +++ new/src/java.desktop/unix/native/common/awt/fontpath.c 2016-12-21 23:30:15.637281388 +0530 @@ -289,6 +289,7 @@ onePath = SAFE_SIZE_ARRAY_ALLOC(malloc, strlen (fDirP->name[index]) + 2, sizeof( char ) ); if (onePath == NULL) { free ( ( void *) appendDirList ); + free ( ( void *) newFontPath ); XFreeFontPath ( origFontPath ); return; }