Improve memory allocation handling.
Authored by: tortoisesvn 2007-10-15
Parent: [r180]
Child: [r182]