We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 464836c commit 0664ee8Copy full SHA for 0664ee8
src/repository.c
@@ -1596,14 +1596,14 @@ Repository_status(Repository *self)
1596
size_t len, i;
1597
git_status_list *list;
1598
1599
- dict = PyDict_New();
1600
- if (dict == NULL)
1601
- return NULL;
1602
-
1603
err = git_status_list_new(&list, self->repo, NULL);
1604
if (err < 0)
1605
return Error_set(err);
1606
+ dict = PyDict_New();
+ if (dict == NULL)
+ goto error;
+
1607
len = git_status_list_entrycount(list);
1608
for (i = 0; i < len; i++) {
1609
const git_status_entry *entry;
0 commit comments