#include #include #include #include "struct.h" #include "inheritance.h" #include "free.h" void free_value( struct value* this) { if (this && !--this->refcount) { assert(this); assert(this->inheritance); assert(this->inheritance->free); (this->inheritance->free)(this); free(this); } }