lambda-calculus/number/free.c
2025-01-13 20:36:07 -06:00

22 lines
268 B
C

#include <stdlib.h>
#include <debug.h>
#include "struct.h"
#include "free.h"
void free_number(
struct number* this)
{
ENTER;
if (this && !--this->refcount)
{
mpq_clear(this->number);
free(this);
}
EXIT;
}