rem: attendees[c++] = strdup(icalproperty_get_attendee(p));
add: attendees[c++] = icalmemory_strdup(icalproperty_get_attendee(p));
context: char** get_required_attendees(icalproperty* event){    icalproperty* p;    icalparameter* parameter;    char **attendees;    int max = 10;    int c = 0;    attendees = malloc(max * (sizeof (char *)));    assert(event != 0);    assert(icalcomponent_isa(event) == ICAL_VEVENT_COMPONENT);        for(	p = icalcomponent_get_first_property(event,ICAL_ATTENDEE_PROPERTY);	p != 0;	p = icalcomponent_get_next_property(event,ICAL_ATTENDEE_PROPERTY)	) {		parameter = icalproperty_get_first_parameter(p,ICAL_ROLE_PARAMETER);	if ( icalparameter_get_role(parameter) == ICAL_ROLE_REQPARTICIPANT) 	{	    attendees[c++] = strdup(icalproperty_get_attendee(p));            if (c >= max) {                max *= 2;                 attendees = realloc(attendees, max * (sizeof (char *)));            }	}    }    return attendees;}