Show More
@@ -1549,7 +1549,7 b' bail:' | |||||
1549 | */ |
|
1549 | */ | |
1550 | static PyObject *index_commonancestorsheads(indexObject *self, PyObject *args) |
|
1550 | static PyObject *index_commonancestorsheads(indexObject *self, PyObject *args) | |
1551 | { |
|
1551 | { | |
1552 |
PyObject *ret = NULL |
|
1552 | PyObject *ret = NULL; | |
1553 | Py_ssize_t argcount, i, len; |
|
1553 | Py_ssize_t argcount, i, len; | |
1554 | bitmask repeat = 0; |
|
1554 | bitmask repeat = 0; | |
1555 | int revcount = 0; |
|
1555 | int revcount = 0; | |
@@ -1620,22 +1620,16 b' static PyObject *index_commonancestorshe' | |||||
1620 | goto done; |
|
1620 | goto done; | |
1621 | } |
|
1621 | } | |
1622 |
|
1622 | |||
1623 |
|
|
1623 | ret = find_gca_candidates(self, revs, revcount); | |
1624 |
if ( |
|
1624 | if (ret == NULL) | |
1625 | goto bail; |
|
1625 | goto bail; | |
1626 |
|
1626 | |||
1627 | ret = gca; |
|
|||
1628 | Py_INCREF(gca); |
|
|||
1629 |
|
||||
1630 | done: |
|
1627 | done: | |
1631 | free(revs); |
|
1628 | free(revs); | |
1632 | Py_XDECREF(gca); |
|
|||
1633 |
|
||||
1634 | return ret; |
|
1629 | return ret; | |
1635 |
|
1630 | |||
1636 | bail: |
|
1631 | bail: | |
1637 | free(revs); |
|
1632 | free(revs); | |
1638 | Py_XDECREF(gca); |
|
|||
1639 | Py_XDECREF(ret); |
|
1633 | Py_XDECREF(ret); | |
1640 | return NULL; |
|
1634 | return NULL; | |
1641 | } |
|
1635 | } |
General Comments 0
You need to be logged in to leave comments.
Login now