Commit ac372a2e authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: Do free the base of a refobject as well

parent 48c3ce52
...@@ -98,6 +98,8 @@ int refobject_unref(refobject_t self) ...@@ -98,6 +98,8 @@ int refobject_unref(refobject_t self)
thread_mutex_unlock(&(base->lock)); thread_mutex_unlock(&(base->lock));
thread_mutex_destroy(&(base->lock)); thread_mutex_destroy(&(base->lock));
free(base);
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment