@@ -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++ ) {