summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/reference.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/reference.c b/src/core/reference.c
index 2c97c6a..211ef23 100644
--- a/src/core/reference.c
+++ b/src/core/reference.c
@@ -38,6 +38,7 @@ Reference*
reference_new(Symbol *p_symbol) {
Reference *p_reference = malloc(sizeof(Reference));
+ symbol_ref_up(p_symbol);
p_reference->p_symbol = p_symbol;
return (p_reference);