Assert malloc results