소스 검색

Add missing DECREF on local variable

Lele Gaifax 9 년 전
부모
커밋
e02f902649
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;