Explorar o código

_diff_tree_.c: Fix double decref of objects module.

Ted Horst %!s(int64=14) %!d(string=hai) anos
pai
achega
c1c8d0dd7a
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 2 0
      NEWS
  2. 0 1
      dulwich/_diff_tree.c

+ 2 - 0
NEWS

@@ -2,6 +2,8 @@
 
  BUG FIXES
 
+  * Fix double decref in _diff_tree.c. (Ted Horst, #715528)
+
   * Fix the build on Windows. (Pascal Quantin)
 
   * Fix get_transport_and_path compatibility with pre-2.6.5 versions of Python.

+ 0 - 1
dulwich/_diff_tree.c

@@ -438,7 +438,6 @@ init_diff_tree(void)
 		goto error;
 	}
 
-	Py_DECREF(objects_mod);
 	Py_DECREF(diff_tree_mod);
 	return;