Fixed crashes in Repository.create_remote caused by missing Py_INCREF()

This commit is contained in:
Jun Omae
2013-04-19 16:58:40 +09:00
parent 072cc38607
commit cf7146f081

View File

@@ -1028,6 +1028,7 @@ Repository_create_remote(Repository *self, PyObject *args)
return Error_set(err);
py_remote = PyObject_New(Remote, &RemoteType);
Py_INCREF(self);
py_remote->repo = self;
py_remote->remote = remote;