< prev index next >

src/java.desktop/unix/native/common/awt/fontpath.c

Print this page

        

@@ -267,10 +267,11 @@
 
     newFontPath = SAFE_SIZE_ARRAY_ALLOC(malloc, totalDirCount, sizeof ( char **) );
     /* if it fails free things and get out */
     if ( newFontPath == NULL ) {
       free ( ( void *) appendDirList );
+      free((void*) newFontPath);
       XFreeFontPath ( origFontPath );
       return;
     }
 
     for ( origIndex = 0; origIndex < nPaths; origIndex++ ) {
< prev index next >