diff --git a/src/refobject.c b/src/refobject.c index ab06e6b2..31d1b915 100644 --- a/src/refobject.c +++ b/src/refobject.c @@ -98,6 +98,8 @@ int refobject_unref(refobject_t self) thread_mutex_unlock(&(base->lock)); thread_mutex_destroy(&(base->lock)); + free(base); + return 0; }