From ac372a2edc837aead93bb2d6e76f437330b11d3c Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 6 Jun 2018 10:49:01 +0000 Subject: [PATCH] Fix: Do free the base of a refobject as well --- src/refobject.c | 2 ++ 1 file changed, 2 insertions(+) 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; }