It's explicit opt in RAII, you opt in by using a defer.

RAII, which stands for Resource Acquisition Is Initialization, is a programming technique in which a resource's lifetime is tied to an object's lifespan. An explicit defer does not fit this paradigm.

free is an explicit opt-in garbage collector.