Don't check for NULL-pointers before calling free().