avoid excessive and short memory allocations, check for allocation failures CCMAIL: tk@trapkit.de, l.lunak@suse.cz
Changed paths: