Show More
@@ -69,7 +69,7 b' static int _addpath(PyObject *dirs, PyOb' | |||
|
69 | 69 | val = PyDict_GetItem(dirs, key); |
|
70 | 70 | if (val != NULL) { |
|
71 | 71 | PyInt_AS_LONG(val) += 1; |
|
72 | continue; | |
|
72 | break; | |
|
73 | 73 | } |
|
74 | 74 | |
|
75 | 75 | /* Force Python to not reuse a small shared int. */ |
@@ -114,9 +114,11 b' static int _delpath(PyObject *dirs, PyOb' | |||
|
114 | 114 | goto bail; |
|
115 | 115 | } |
|
116 | 116 | |
|
117 |
if (--PyInt_AS_LONG(val) <= 0 |
|
|
118 |
|
|
|
119 | goto bail; | |
|
117 | if (--PyInt_AS_LONG(val) <= 0) { | |
|
118 | if (PyDict_DelItem(dirs, key) == -1) | |
|
119 | goto bail; | |
|
120 | } else | |
|
121 | break; | |
|
120 | 122 | Py_CLEAR(key); |
|
121 | 123 | } |
|
122 | 124 | ret = 0; |
General Comments 0
You need to be logged in to leave comments.
Login now