]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/python-pycurl-fix-do_curl_reset-refcount.patch
tor: Bump package version to 6 and fix backup.
[people/teissler/ipfire-2.x.git] / src / patches / python-pycurl-fix-do_curl_reset-refcount.patch
CommitLineData
3b6f5fb7
MT
1--- a/src/pycurl.c
2+++ a/src/pycurl.c
3@@ -1452,6 +1452,7 @@ do_curl_reset(CurlObject *self)
4 }
5 }
6
7+ Py_INCREF(Py_None);
8 return Py_None;
9 }
10
11--- a/tests/test_internals.py
12+++ a/tests/test_internals.py
13@@ -245,6 +245,11 @@ if 1 and gc:
14 if opts.verbose >= 1:
15 print "Tracked objects:", len(gc.get_objects())
16
17+if 1:
18+ # Ensure that the refcounting error in "reset" is fixed:
19+ for i in xrange(100000):
20+ c = Curl()
21+ c.reset()
22
23 # /***********************************************************************
24 # // done