fix error return from got_reflist_object_id_map_create()
diff --git a/lib/reference.c b/lib/reference.c
index 61bda5a..9634212 100644
--- a/lib/reference.c
+++ b/lib/reference.c
@@ -1462,7 +1462,7 @@ done:
got_reflist_object_id_map_free(*map);
*map = NULL;
}
- return NULL;
+ return err;
}
struct got_reflist_head *