summaryrefslogtreecommitdiffhomepage
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ast.c b/ast.c
index 0a04892..21c2b65 100644
--- a/ast.c
+++ b/ast.c
@@ -381,15 +381,8 @@ ut_release_scope(struct ut_scope *sc)
sc->refs--;
- if (sc->refs == 0) {
+ if (sc->refs == 0)
json_object_put(sc->scope);
- sc->scope = NULL;
-
- if (sc->parent) {
- ut_release_scope(json_object_get_userdata(sc->parent));
- sc->parent = NULL;
- }
- }
}
struct ut_scope *