Commit a53af95f5efd3856131a115cb05f361318dac49a

Stefan Sperling 2020-12-26T23:04:46

fix error return from got_reflist_object_id_map_create()

1
2
3
4
5
6
7
8
9
10
11
12
13
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 *