src/server/security-server-cookie.c
/* Delete useless cookie item *
 * then connect prev and next */
Delete useless cookie item
then connect prev and next
Delete useless cookie item then connect prev and next
int free_cookie_item(cookie_list *cookie)
{
	if(cookie->path != NULL)
		free(cookie->path);
	if(cookie->permissions != NULL)
		free(cookie->permissions);
        if(cookie->smack_label != NULL)
                free(cookie->smack_label);
	if(cookie->prev != NULL)
		cookie->prev->next = cookie->next;
	if(cookie->next != NULL)
		cookie->next->prev = cookie->prev;
	free(cookie);
	cookie = NULL;
	return 0;
}
int free_cookie_item ( cookie_list * cookie ) { if ( cookie -> path != NULL ) free ( cookie -> path ) ; if ( cookie -> permissions != NULL ) free ( cookie -> permissions ) ; if ( cookie -> smack_label != NULL ) free ( cookie -> smack_label ) ; if ( cookie -> prev != NULL ) cookie -> prev -> next = cookie -> next ; if ( cookie -> next != NULL ) cookie -> next -> prev = cookie -> prev ; free ( cookie ) ; cookie = NULL ; return 0 ; }
Delete useless cookie item
 then connect prev and next
Delete useless cookie item then connect prev and next