# Event::free

(PECL event >= 1.2.6-beta)

Event::free — Make event non-pending and free resources allocated for this event

### Descripción

public Event::free(): void

Removes event from the list of events monitored by libevent, and free resources allocated for the event.

Advertencia

The Event::free() method currently doesn't destruct the object itself. To destruct the object completely call unset() , or assign `null`.

### Parámetros

Esta función no tiene parámetros.

### Valores devueltos

No devuelve ningún valor.

### Ver también

- Event::__construct() - Constructs Event object