4-variable-simplifier/expression/free.c
2026-04-25 16:00:10 -04:00

25 lines
391 B
C

#include <debug.h>
#include "inheritance.h"
#include "struct.h"
#include "free.h"
void free_expression(
struct expression* this)
{
if (this)
{
if (!--this->refcount)
{
assert(this);
assert(this->inheritance);
assert(this->inheritance->free);
free(this);
}
}
}