Parcourir la source

Add missing DECREF on local variable

Lele Gaifax il y a 9 ans
Parent
commit
e02f902649
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      dulwich/_pack.c

+ 1 - 0
dulwich/_pack.c

@@ -249,6 +249,7 @@ void init_pack(void)
 		return;
 
 	PyExc_ApplyDeltaError = PyObject_GetAttrString(errors_module, "ApplyDeltaError");
+	Py_DECREF(errors_module);
 	if (PyExc_ApplyDeltaError == NULL)
 		return;