Ver Fonte

Add missing DECREF on local variable

Lele Gaifax há 9 anos atrás
pai
commit
e02f902649
1 ficheiros alterados com 1 adições e 0 exclusões
  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;