summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index 2308a09..8f5abc0 100644
--- a/ast.c
+++ b/ast.c
@@ -383,7 +383,7 @@ ut_extended_type_free(struct json_object *v, void *ud)
et = &ut_ext_types[op->tag.type - 1];
- if (et->free)
+ if (et->free && op->tag.data)
et->free(op->tag.data);
json_object_put(op->tag.proto);