the memory is freed everywhere else before returning except here, the non-errpr
case.
Authored by: sms00 2009-05-16
Parent: [r3249]
Child: [r3251]