Fixed crashes in Repository.create_remote
caused by missing Py_INCREF()
This commit is contained in:
@@ -1028,6 +1028,7 @@ Repository_create_remote(Repository *self, PyObject *args)
|
|||||||
return Error_set(err);
|
return Error_set(err);
|
||||||
|
|
||||||
py_remote = PyObject_New(Remote, &RemoteType);
|
py_remote = PyObject_New(Remote, &RemoteType);
|
||||||
|
Py_INCREF(self);
|
||||||
py_remote->repo = self;
|
py_remote->repo = self;
|
||||||
py_remote->remote = remote;
|
py_remote->remote = remote;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user