summaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag.c b/tag.c
index 9eade750d3..3a71dd416a 100644
--- a/tag.c
+++ b/tag.c
@@ -49,6 +49,8 @@ int parse_tag(struct tag *item)
goto err;
item->tagged = parse_object(object);
+ if (item->tagged)
+ add_ref(&item->object, item->tagged);
type_line = data + 48;
if (memcmp("\ntype ", type_line-1, 6))